Node.js FAQ: Top Questions
38. What is the crypto module in Node.js?
The crypto module in Node.js provides cryptographic functionality, including hashing, encryption, and signing, for secure data handling.
-
Features:
createHash
,createCipheriv
,randomBytes
. - Algorithms: SHA-256, AES, RSA, etc.
- Async Support: Promise-based methods in newer versions.
- Use Case: Password hashing, data encryption.