cloak v0.2.0 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