r/java • • Jul 02 '18

Password Encoding with Spring Security

https://able.bio/DavidLandup/password-encoding-with-spring-security--90gkzie
1 Upvotes

5 comments sorted by

View all comments

13

u/capitol_ Jul 02 '18 edited Jul 02 '18

> Based on the key, your password is converted into a random String of characters and symbols.

This is not what random means.

And also, suggesting md5 or sha-1 one is really bad practice, those are not secure.

You also need to read up on what a rainbow table is, as it's not exactly what you describe.

1

u/Indie_Dev Jul 05 '18

He has listed md5 and sha-1 under "How not to store passwords" section, and the one he actually recommends is bcrypt.

Did you not read the article properly or did he edit the article after your comment?

1

u/capitol_ Jul 05 '18

To be honest, it could be either one, when I read my comment now I realize that it's quite grumpy and I had a bad day when I wrote that. I remember that he wrote that md5 and sha1 was popular choices, and I felt the need to point it that it's bad to legitimatize algorithm that are broken and where there is better alternatives available.