3 ms·
You could use hash the password with sha2 and then with bcrypt, but not the other way around. Hashing with sha2 will give you the same result every time. That'
by onei 6y ago
You could use hash the password with sha2 and then with bcrypt, but not the other way around.
Hashing with sha2 will give you the same result every time. That's why it's appropriate to use as a checksumming algorithm - the results are repeatable. Bcrypt on the other hand does not generate the same result every time by design due to it using a randomly generated salt.
However, if you did hash with sha2 the first time, you may end up regretting that decision if sha2 collisions end up being possible and/or practical.