问题描述
我已经尝试了好几天,在Windows机器上安装bcrypt却没有运气.即使我已经尝试了来自网络的大量建议,但其中之一依赖项(Windows 7 SDK)也不想安装.
I have tried for days to get bcrypt installed on my windows machine with no luck. One of the dependencies (Windows 7 SDK) does not want to be installed even though I have tried numerous suggestions from around the net it just refuses to cooperate.
我需要一个没有任何依赖关系的bcrypt的好选择.
I need a good alternative to bcrypt which does not have any dependencies.
推荐答案
查看 https://npmjs.org/package/bcryptjs,它与bcrypt完全兼容,而无需依赖.
Check out https://npmjs.org/package/bcryptjs, it's fully compatible with bcrypt just without the dependencies.
或者 https://npmjs.org/package/simplecrypt ,如果您不希望使用加密样板,而只需要加密和解密字符串.
Or https://npmjs.org/package/simplecrypt if you don't want the crypto boilerplate and just need to encrypt and decrypt strings.
这篇关于bcrypt与节点一起使用的替代方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!