0
我正在使用bcrypt来加密密码并保存到数据库中,但现在我需要授予管理员访问权限,以便他可以检查任何人的密码,这样才能以简单的形式返回。可以通过编码以纯文本格式获取我的bcrypt密码吗?
bcrypt.genSalt(saltRounds, function(err, salt) {
bcrypt.hash(myPlaintextPassword, salt, function(err, hash) {
// Store hash in your password DB.
});
});
https://www.npmjs.com/package/bcrypt
我能得到我的纯形式bcrypted密码通过编码。
感谢您的确认欢呼 – Ash