module Sodium::Password

Overview

Argon2 Password Hashing

See examples/pwhash_selector.cr for help on selecting parameters.

Defined in:

sodium/password.cr
sodium/password/hash.cr
sodium/password/key.cr

Constant Summary

MEMLIMIT_INTERACTIVE = LibSodium.crypto_pwhash_memlimit_interactive
MEMLIMIT_MAX = LibSodium.crypto_pwhash_memlimit_max

Don't use this. Maximum of the library which is more ram than any computer.

MEMLIMIT_MIN = LibSodium.crypto_pwhash_memlimit_min
OPSLIMIT_INTERACTIVE = LibSodium.crypto_pwhash_opslimit_interactive
OPSLIMIT_MAX = LibSodium.crypto_pwhash_opslimit_max
OPSLIMIT_MIN = LibSodium.crypto_pwhash_opslimit_min
OPSLIMIT_MODERATE = LibSodium.crypto_pwhash_opslimit_moderate
OPSLIMIT_SENSITIVE = LibSodium.crypto_pwhash_opslimit_sensitive
SALT_SIZE = LibSodium.crypto_pwhash_saltbytes
STR_SIZE = LibSodium.crypto_pwhash_strbytes