An Ecto.Type to encrypt a float field.
Ecto.Type
You should create the field with type :binary. Values will be converted back to floats on decryption.
:binary
schema "table" do field :field_name, Cloak.EncryptedFloatField end