r/AskComputerScience • u/super_potato_boy • May 20 '25
why does password length affect strength if passwords are salt-hashed?
My understanding is that passwords are hashed into long, unpredictable strings via a one-way hash function. Why does the input length matter?
78
Upvotes
View all comments
Show parent comment
2
u/UncleMeat11 May 21 '25
Why not? If we are talking about online attacks then the issue is rate limiting. If we are talking about offline attacks then it is always assumed that both the salt and hash are known.