aboutsummaryrefslogtreecommitdiff
path: root/src/codegen/spirv
diff options
context:
space:
mode:
authorFrank Denis <124872+jedisct1@users.noreply.github.com>2023-06-06 09:08:57 +0200
committerGitHub <noreply@github.com>2023-06-06 09:08:57 +0200
commit9ee0a706da66e271ce0f79d00566dbe40b57b83e (patch)
tree78d131370e5af989a391194c7f379eee0abe4ae0 /src/codegen/spirv
parent7e0a02ee2593d99236bc9a1ff98a8f957add6ec4 (diff)
downloadzig-9ee0a706da66e271ce0f79d00566dbe40b57b83e.tar.gz
zig-9ee0a706da66e271ce0f79d00566dbe40b57b83e.zip
crypto.bcrypt: allow very large passwords to be pre-hashed (#15955)
crypto.bcrypt: allow very large passwords to be pre-hashed bcrypt has a slightly annoying limitation: passwords are limited to 72 characters. In the original implementation, additional characters are silently ignored. When they care, applications adopt different strategies to work around this, in incompatible ways. Ideally, large passwords should be pre-hashed using a hash function that hinders GPU attackers, and the hashed function should not be deterministic in order to defeat shucking attacks. This change improves the developer experience by adding a very explicit `silently_truncate_password` option, that can be set to `false` in order to do that automatically, and consistently across Zig applications. By default, passwords are still truncated, so this is not a breaking change. Add some inline documentation for our beloved autodoc by the way.
Diffstat (limited to 'src/codegen/spirv')
0 files changed, 0 insertions, 0 deletions