简体   繁体   English

解密salt和bcrypt-nodejs的文本

[英]Decrypt text for salt and bcrypt-nodejs

I am using bcrypt-nodejs module for password hash . 我正在使用bcrypt-nodejs模块进行密码哈希。 But when want to forget password feature , how to get actual password ? 但是当想忘记密码功能时,如何获取实际密码? My actuall password already encrypt by salt and bcrypt-nodejs. 我的实际密码已经被salt和bcrypt-nodejs加密。

That's one of the major security features of bcrypt is that you can't get the original password after it has been hashed. 这是bcrypt的主要安全功能之一,是在对原始密码进行哈希处理后,您将无法获得原始密码。 You can only compare hashed values. 您只能比较散列值。 So for a "Forgot password" feature, the user will have to set a new password. 因此,对于“忘记密码”功能,用户将必须设置一个新密码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM