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
1
u/UncleMeat11 May 21 '25
But you typically do know the salt value. The scenario here is an offline attack after the credentials database has been dumped. Salts are typically stored alongside the hashes.