cloak v0.6.2 Cloak.EncryptedDateField View Source

An Ecto.Type to encrypt Date fields.

Usage

You should create the field with the type :binary. Values will be converted back to Dates on decryption.

schema "table" do
  field :field_name, Cloak.EncryptedDateField
end