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条回答
贪生不怕死
2楼-- · 2020-02-19 00:04

Maybe because salt goes well with hash?

查看更多
疯言疯语
3楼-- · 2020-02-19 00:07

http://www.derkeiler.com/Newsgroups/comp.security.misc/2003-05/0154.html

The use of the word "salt" is probably a reference to warfare in ancient times, when people would salt the wells or farmland to make it less hospitable. The Romans are sometimes supposed to have done this to Carthage in 146 BC. In the context of passwords, a "salted" password is harder to crack.

Apparently, there's no strong evidence even for the original "salting" of Carthage (http://en.wikipedia.org/wiki/Salting_the_earth) claim, but an interesting hypothesis nonetheless.

查看更多
别忘想泡老子
4楼-- · 2020-02-19 00:14

The only meaning is that you are adding something to your password before you hash it, similarly to adding salt to your meal :-)

查看更多
ら.Afraid
5楼-- · 2020-02-19 00:15

According to Ken Thompson, one of the first people to use the term in a book, it's related to the term "salting a mine", referring to gold mines. Whether that is "correct" or not who knows? I doubt there's an actual correct answer to this, it's just one of those terms that doesn't really have to have a reason as long as what it means is understood.

查看更多
我想做一个坏孩纸
6楼-- · 2020-02-19 00:16

Once you add salt to food the real taste is no longer visible. So basically this is a figurative saying; add a little salt and it changes the original dish.

查看更多
beautiful°
7楼-- · 2020-02-19 00:21

I had thought it related to the verb salt ...

(salt away) informal put by (money) secretly. 

-- http://www.askoxford.com/concise_oed/saltx?view=uk

查看更多
登录 后发表回答