aboutsummaryrefslogtreecommitdiff
path: root/src/Compilation.zig
diff options
context:
space:
mode:
authorFrank Denis <github@pureftpd.org>2020-10-24 22:40:20 +0200
committerAndrew Kelley <andrew@ziglang.org>2020-10-25 21:11:40 -0400
commit1b4ab749cffeff146b21fb0f6d30a5b8d2186765 (patch)
treebc37f18bfe60551721551a66905bf36ce130b7cd /src/Compilation.zig
parent2a0a11aa6632aa3180ebb1c528b0d1fcb970d5ff (diff)
downloadzig-1b4ab749cffeff146b21fb0f6d30a5b8d2186765.tar.gz
zig-1b4ab749cffeff146b21fb0f6d30a5b8d2186765.zip
std/crypto: add the bcrypt password hashing function
The bcrypt function intentionally requires quite a lot of CPU cycles to complete. In addition to that, not having its full state constantly in the CPU L1 cache causes a massive performance drop. These properties slow down brute-force attacks against low-entropy inputs (typically passwords), and GPU-based attacks get little to no advantages over CPUs.
Diffstat (limited to 'src/Compilation.zig')
0 files changed, 0 insertions, 0 deletions