Older and weaker hashing algorithms are probably better for this, sha384 and upwards produce large hashes that might be too big for passwords for some websites. Protonmail trims anything more than 72 characters.
See - https://www.reddit.com/r/ProtonMail/comments/khrzhe/pm_ignor...
TheDong|5 years ago
For more security, you of course can encode the sha512 hash in a format other than hex in order to let those 64 bytes be fewer characters. The hex encoding is only one of many encodings.
But the main point is that the solution to needing to store a shorter value is not to use a weaker hashing algorithm, but to truncate the result.
This is the reason that sha-512/256 exists as a truncated sha-512 even though sha-256 already existed.
withinboredom|5 years ago
[1] https://crypto.stackexchange.com/questions/12822/are-the-sha...
phantom_rehan|5 years ago
I don't think the algorithm matters here, but only the length.
tpetry|5 years ago
hn_throwaway_99|5 years ago