What is SALT and how do i use it?

后端 未结 6 1241
盖世英雄少女心
盖世英雄少女心 2020-11-30 23:53

I have been searching around and I am still unsure of what a \"salt\" is and how to use/implement it. Sorry for the noobish question, I am self learning php.

6条回答
  •  旧时难觅i
    2020-12-01 00:53

    A salt is a (short) string that is added to the string you want to encrypt or hash. An Example:

    
    

    This adds security to the hash, as it's unlikely that "anythingyouwant_abcdefg" is already stored in a hash-database ( http://en.wikipedia.org/wiki/Rainbow_tables )

提交回复
热议问题