Encryption and Decryption in Node can be done by installing and implementing the ‘crypto’ library. If you have installed Node.js by manual build, then there is a chance that the crypto library is not shipped with it. You can run
the following command to install the crypto dependency.
npm install crypto --save
But you don’t need to do that if you have installed it using pre-built packages.
Example for implementing crypto in Node.
- Nodejs | Automatic restart NodeJs server with nodemon
- Nodejs | DNS
- Nodejs | Jimp
- Web-Socket in NodeJS
- Nodejs | DNS | setServers()
- Nodejs | Web Crawling using Cheerio
- Difference between NodeJS and AngularJS
- Dockerizing a simple Nodejs app
- NodeJs - Handling invalid routes
- Nodejs – Connect Mysql with Node app
- Signup Form Using Nodejs and MongoDB
- Cowsay in Nodejs using Requests library
- Nodejs - Connect MongoDB with Node app using MongooseJS
- NodeJS | Building simple REST API in express
- Nodejs | authentication using Passportjs and passport-local-mongoose
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.