Is there an advantage to this hash for security?

后端 未结 4 650
悲哀的现实
悲哀的现实 2021-01-14 01:16

Is there any advantage to

sha1(sha1(sha1($password. $salt)));

Basically having multiple sha1 verses just one sha1

sha1($pa         


        
4条回答
  •  没有蜡笔的小新
    2021-01-14 01:55

    The short answer is no. When you chain two hash algorithms, all you're doing is creating another hash algorithm that has unknown properties (security-wise). Use a salt (or even better, HMAC).

提交回复
热议问题