Bcrypt Hashing and Verification
bcrypt is a cryptographic hash algorithm specifically designed for secure password storage.
Generate bcrypt Hash
Hash a text. The result is a bcrypt hash.
bcrypt Hash Structure:
- $2a$: The hash algorithm identifier and version (bcrypt)
- : Cost factor (2 i.e. rounds)
- $: Separator
- : A base-64 encoding of the input salt (22 characters)
- : A base-64 encoding of the first 23 bytes of the computed 24 byte hash (31 characters)