How to hash a password with SHA-512 in Java?

后端 未结 7 1888
天涯浪人
天涯浪人 2020-11-30 23:10

I\'ve been investigating a bit about Java String encryption techniques and unfortunately I haven\'t find any good tutorial how to hash String with SHA-512 in Java; I read a

7条回答
  •  眼角桃花
    2020-11-30 23:37

    Please stop using hash functions to encode passwords! They do not provide the protection you need. Instead, you should be using an algorithm like PBKDF2, bcrypt, or scrypt.

    References:

    • http://blog.tjll.net/please-stop-hashing-passwords/
    • http://security.blogoverflow.com/2011/11/why-passwords-should-be-hashed/
    • https://crackstation.net/hashing-security.htm
    • http://www.sitepoint.com/risks-challenges-password-hashing/
    • http://security.blogoverflow.com/2013/09/about-secure-password-hashing/

提交回复
热议问题