说明:嘘!
shhh是一个用于单向散列敏感数据的小型库。 与bcrypt相似,但是在节点的加密库中使用scrypt 。
用法
import { hash , compare } from 'kerimhudson/shhh'
// hash the value
const hashedValue = hash ( 'SUPER_SECRET_PASSWORD' )
// provide your own salt if you'd prefer
const hashedWithASalt = has <weixin_42153793> 上传 | 大小:4kb