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