How do I convert password hashing from MD5 to SHA?

前端 未结 7 684
谎友^
谎友^ 2020-12-29 08:06

I\'ve got an old application that has user passwords stored in the database with an MD5 hash. I\'d like to replace this with something in the SHA-2 family.

I\'ve tho

7条回答
  •  被撕碎了的回忆
    2020-12-29 08:47

    Your second suggestion sounds the best to me. That way frequent users will have a more secure experience in the future.

    The first effectively "quirks-mode"'s your codebase and only makes sure that new users have the better SHA experience.

提交回复
热议问题