Structs§
- Salt
- A bcrypt salt.
- Work
Factor - A bcrypt work factor.
Enums§
- Bcrypt
Error - 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.