📅  最后修改于: 2022-03-11 15:01:55.441000             🧑  作者: Mango
// To encrypt passwords use bcrypt
>> npm install bcrypt
const bcrypt = require('bcrypt');
bcrypt.hash('somePassowrd', 12).then(hash => {
console.log(hash);
});