what’s salt in cryptography

tags: learning programming

content

  • salt is a random string that is appended to a password before hashing
    • hashed = hash(password + salt)
  • salt and hashed will be stored in the server database
  • each password has its own salt
  • the purpose is to add randomness to each password
  • if the whole db is leaked, even the same password will have different hash

up

down

reference