Fields. Helpers
(fields v2.12.0)
Copy Markdown
Helper functions for hashing, generating (random) salt values and fetching secrets form environment.
Summary
Functions
Hash a string, or a value that implements the String.Chars protocol, using Argon2. Argon2 is a strong but slow hashing function, so is recommended for passwords.
Functions
@spec hash(atom(), String.Chars.t()) :: String.t()
@spec hash(atom(), String.Chars.t()) :: String.t()
Hash a string, or a value that implements the String.Chars protocol, using Argon2. Argon2 is a strong but slow hashing function, so is recommended for passwords.