Closed typetetris closed 2 years ago
Overwrite the password copy done by rust-bcrypt with zeros.
Use zeroize so it doesn't get optimized away.
Openwall bcrypt even hashes a dummy password after every real password hashed, to cleanse registers and (hopefully, might not work all the time) stack. Might be a bit over the top.
Thanks!
Your welcome!
Overwrite the password copy done by rust-bcrypt with zeros.
Use zeroize so it doesn't get optimized away.
Openwall bcrypt even hashes a dummy password after every real password hashed, to cleanse registers and (hopefully, might not work all the time) stack. Might be a bit over the top.