cloak v0.6.2 Cloak.EncryptedNaiveDateTimeField View Source

An Ecto.Type to encrypt NaiveDateTime fields.

Usage

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

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