|
|
|
|
|
by jedisct1
501 days ago
|
|
`bcrypt()` is bcrypt as implemented everywhere else, and is required for interoperability with other implementations. If you don't truncate, this is not `bcrypt` any more. `bcryptWithTruncation()` is great for applications entirely written in Zig, but can create hashes that would not verify with other implementations. The documentation of these functions is very explicit about the difference. The verification function includes a `silently_truncate_password` option that is also pretty explicit. |
|