3 ms·
Doesn't most of bcrypt's work come from rehashing its output? So it only has to touch the 1GB input once, right? Edit: after reading https://en.wikipedia.org/
by nitrogen 13y ago
Doesn't most of bcrypt's work come from rehashing its output? So it only has to touch the 1GB input once, right?
Edit: after reading https://en.wikipedia.org/wiki/Bcrypt#Algorithm https://en.wikipedia.org/wiki/Bcrypt#Algorithm, it looks like bcryt's make-work loop does refer to the key in each iteration. I can't tell on a cursory reading whether access to the original key can be memoized, though hashing the large input once before passing it into bcrypt would have the same effect.