module Sodium::Password
Overview
Sodium::Password::Hash- - Use for server side authentication replacing scrypt, bcrypt or crypt.
Sodium::Password::Key::Create- - Use to create a key with auto set parameters based on time.
- - Often used in single user application such as password safes, gpg/ssh keys or other encrypted storage.
Sodium::Password::Key- - Use with the
paramsreturned byCreate#create_keyor set your own to derive a consistent key or kdf.
See examples/pwhash_selector.cr for help on selecting parameters.
Defined in:
sodium/password.crsodium/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