cloak v0.6.2 Cloak.EncryptedFloatField View Source

An Ecto.Type to encrypt a float field.

Usage

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

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