Fields. EmailHash
(fields v2.12.0)
Copy Markdown
An Ecto Type for hashed emails.
Use in conjuction with Fields.EmailEncrypted in order to be able to look up database rows by email.
Hashed using sha256. See Fields.Helpers for hashing details.
Example
schema "users" do
field(:email, Fields.EmailEncrypted)
field(:email_hash, Fields.EmailHash)
end
Summary
Functions
Callback implementation for Ecto.Type.cast/1.
Callback implementation for Ecto.Type.dump/1.
Callback implementation for Ecto.Type.embed_as/1.
Callback implementation for Ecto.Type.equal?/2.
Callback implementation for Ecto.Type.load/1.
Callback implementation for Ecto.Type.type/0.
Functions
Callback implementation for Ecto.Type.cast/1.
Callback implementation for Ecto.Type.dump/1.
Callback implementation for Ecto.Type.embed_as/1.
Callback implementation for Ecto.Type.equal?/2.
Callback implementation for Ecto.Type.load/1.
Callback implementation for Ecto.Type.type/0.