84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
后端密码存储是通过crypt函数+salt,如下:
crypt
salt
pwd = crypt(value ,salt)
salt的格式是$2a$08$aabbccddee,所以加密算法应该是blowfish,那么问题来了,怎样在Nodejs中实现crypt函数?
$2a$08$aabbccddee
blowfish
学习是最好的投资!
npm上有blowfish这个包,看下生成的结果是不是跟你说的crypt的结果一致?
给力!!!!
npm上有blowfish这个包,看下生成的结果是不是跟你说的
crypt
的结果一致?给力!!!!