I am making use of crypto module in my app. It seems like there is crypto module distributed in nodejs http://nodejs.org/api/crypto.html so do i need to do npm install crypto? what is the difference from https://npmjs.org/package/crypto and nodejs api crypto modules?
我在我的应用程序中使用加密模块。似乎在nodejs http://nodejs.org/api/crypto.html中分发了加密模块,所以我需要做npm install crypto吗?有什么区别来自https://npmjs.org/package/crypto和nodejs api crypto模块?
1 个解决方案
#1
15
If you are using the methods from the Crypto module that comes with NodeJS, i.e. those described on http://nodejs.org/api/crypto.html then no, you do not need to do npm install crypto
.
如果您使用的是NodeJS附带的Crypto模块中的方法,即http://nodejs.org/api/crypto.html上描述的那些方法,那么您不需要执行npm install crypto。
#1
15
If you are using the methods from the Crypto module that comes with NodeJS, i.e. those described on http://nodejs.org/api/crypto.html then no, you do not need to do npm install crypto
.
如果您使用的是NodeJS附带的Crypto模块中的方法,即http://nodejs.org/api/crypto.html上描述的那些方法,那么您不需要执行npm install crypto。