I have working on jhipster.but i am unable to decrypt password in jhipster and Spring.PasswordEncoderClass only provide encode and Match password function.can you help to decrypt password in jhipster.

Thanks in advance

有帮助吗?

解决方案

We are using Spring Security's StandardPasswordEncoder, I do hope you can't decrypt it :-)

We are indeed storing hashed passwords: as you say, you can encode a password, and validate (match) if a specific String is the correct password, but you can't decrypt it. This means that if your database is stolen by a hacker, he would have a very hard time to figure out your users' passwords.

So this is a very good idea if you want to keep your users' password secure.

If, however, you want to have your passwords in plain text, you can change the encoder in your SecurityConfiguration class: you need to change the "passwordEncoder" bean, and probably use Spring Security's "NoOpPasswordEncoder" class. Of course, I have never done it, as I care about my users' data :-)

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top