2015年09月10日 | Wizzer | 评论 npm install bcrypt –save var salt = bcrypt.genSaltSync(10); var hash = bcrypt.hashSync(‘pass’, salt); console.log(‘加密::’+hash); console.log(‘解密::’+bcrypt.compareSync(‘pass’,hash)); 1,919 total views, 1 views today