Problem Statement
What is the use of the crypto module in Node.js?
Explanation
The crypto module enables secure data encryption, hashing, and signing. It supports algorithms like AES, RSA, and SHA, helping developers secure passwords, tokens, and sensitive data.
Code Solution
SolutionRead Only
const crypto=require('crypto');
const hash=crypto.createHash('sha256').update('secret').digest('hex');
console.log(hash);Practice Sets
This question appears in the following practice sets: