Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Do i need to install crypto module from npm?

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?

like image 529
Yalamber Avatar asked Apr 22 '13 09:04

Yalamber


People also ask

Is crypto included in node?

Crypto is a module in Node. js which deals with an algorithm that performs data encryption and decryption. This is used for security purpose like user authentication where storing the password in Database in the encrypted form. Crypto module provides set of classes like hash, HMAC, cipher, decipher, sign, and verify.

Do I need to install npm packages for every project?

No, npm is a package manager. You only need to install it once in a system.

Do I need to install node to install npm?

To publish and install packages to and from the public npm registry or a private npm registry, you must install Node. js and the npm command line interface using either a Node version manager or a Node installer. We strongly recommend using a Node version manager like nvm to install Node.


1 Answers

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.

like image 92
matthewtole Avatar answered Nov 08 '22 19:11

matthewtole