fields v2.6.0 Fields.Helpers

Link to this section Summary

Functions

Hash a string, or a value that implements the String.Chars protocol, using sha256. sha256 is fast, but not as strong as Argon2, so it is not recommended for hashing passwords.

Link to this section Functions

Link to this function

hash(atom, value)

hash(atom(), String.Chars.t()) :: String.t()
hash(atom(), String.Chars.t()) :: String.t()

Hash a string, or a value that implements the String.Chars protocol, using sha256. sha256 is fast, but not as strong as Argon2, so it is not recommended for hashing passwords.