📜  expressjs 创建加密密码 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:55.441000             🧑  作者: Mango

代码示例1
// To encrypt passwords use bcrypt

>> npm install bcrypt

const bcrypt = require('bcrypt');

bcrypt.hash('somePassowrd', 12).then(hash => {
    console.log(hash);
});