Why is a password salt called a “salt”? [closed]

2020-02-19 00:03发布

Is there a significance to the word "salt" for a password salt?

8条回答
\"骚年 ilove
2楼-- · 2020-02-19 00:26

I would guess because it's easy to add "salt" (NaCl or a fixed string). But once you do, the output is irrevocably changed (food, encrypted password).

查看更多
淡お忘
3楼-- · 2020-02-19 00:26

Because before you hash the password, you add a random text to it. So, it looks like as if you add some "salt" to the original "food" ... password :)

查看更多
登录 后发表回答