How would you add salt to your existing password hashes?

前端 未结 8 1689
心在旅途
心在旅途 2021-02-08 06:08

I have a database of hashed passwords that had no salt added before they were hashed. I want to add salt to new passwords. Obviously I can\'t re-hash the existing ones.

<
8条回答
  •  长发绾君心
    2021-02-08 06:45

    There are some ways here that may work for you.
    Remember, any constant pattern you add into the existing hash is useless (one of the tricks on that link is suggesting something like that). There should be no identifiable pattern that can be used to isolate the salt.

    Of course, the best way would be to migrate to a salted hash table.

提交回复
热议问题