[−][src]Crate bcrypt_only
Structs
Salt | A bcrypt salt. |
WorkFactor | A bcrypt work factor. |
Enums
BcryptError | A bcrypt hashing error. |
Constants
HASH_SIZE | The number of bytes in a bcrypt hash. |
KEY_SIZE_MAX | The maximum number of bytes in a bcrypt key. |
SALT_SIZE | The number of bytes in a bcrypt salt. |
Functions
bcrypt | Hashes a key and salt with bcrypt according to a work factor. The key can’t be longer than 72 bytes and can’t contain a 0 byte. |