An Ecto.Type to encrypt integer fields.
Ecto.Type
You should create the field with type :binary. Values will be converted back to integers on decryption.
:binary
schema "table" do field :field_name, Cloak.EncryptedIntegerField end