cloak v0.6.2 Cloak.EncryptedDateTimeField View Source
An Ecto.Type
to encrypt DateTime
fields.
Usage
You should create the field with the type :binary
.
Values will be converted back to a DateTime
on decryption.
schema "table" do
field :field_name, Cloak.EncryptedDateTimeField
end