How can I hash a password in Java?

前端 未结 13 1997
暖寄归人
暖寄归人 2020-11-22 05:00

I need to hash passwords for storage in a database. How can I do this in Java?

I was hoping to take the plain text password, add a random salt, then store the salt a

13条回答
  •  北海茫月
    2020-11-22 05:29

    You can use the Shiro library's (formerly JSecurity) implementation of what is described by OWASP.

    It also looks like the JASYPT library has a similar utility.

提交回复
热议问题