SpringSecurity:解码使用 PasswordEncoder 编码的密码
SpringSecurity : decode a password encoded with PasswordEncoder
我已经存储(并编码)了一个电子邮件密码。我使用了 PasswordEncoder(Spring 安全)。
passwordEncoder.encode(password);
现在我需要对其进行解码以便在 javax 邮件中使用它。 (密码用于连接到电子邮件提供商(yahoo、gmail 等)。
有办法破解这个密码吗?
提前致谢。
PasswordEncoder interface support only encoding and matching which is the best way to deal with password as others too have suggested. You can use StandardPBEStringEncryptor provided by Jasypt library as this library had transparent integration with Spring Security. Else you can roll out your own using Java Cryptography Extension's Password Based Encryption (PBE) however before trying what you want to achieve with regards to password encryption you must definitely read this.
我已经存储(并编码)了一个电子邮件密码。我使用了 PasswordEncoder(Spring 安全)。
passwordEncoder.encode(password);
现在我需要对其进行解码以便在 javax 邮件中使用它。 (密码用于连接到电子邮件提供商(yahoo、gmail 等)。
有办法破解这个密码吗?
提前致谢。
PasswordEncoder interface support only encoding and matching which is the best way to deal with password as others too have suggested. You can use StandardPBEStringEncryptor provided by Jasypt library as this library had transparent integration with Spring Security. Else you can roll out your own using Java Cryptography Extension's Password Based Encryption (PBE) however before trying what you want to achieve with regards to password encryption you must definitely read this.