Fields.EmailHash (fields v2.8.0)
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
Link to this section Summary
Link to this section Functions
Link to this function
cast(value)
Link to this function
dump(value)
Link to this function
embed_as(_)
Link to this function
equal?(term1, term2)
Link to this function
load(value)
Link to this function