Instances of the Cipher class are used to encrypt data.
The crypto module provides cryptographic functionality that includes a set of wrappers for OpenSSL's hash, HMAC, cipher, decipher, sign and verify functions.
The crypto module provides cryptographic functionality that includes a set of wrappers for OpenSSL's hash, HMAC, cipher, decipher, sign and verify functions.
https://nodejs.org/dist/latest-v7.x/docs/api/crypto.html#crypto_crypto
Instances of the Decipher class are used to decrypt data.
Instances of the Decipher class are used to decrypt data. The class can be used in one of two ways:
The crypto.createDecipher() or crypto.createDecipheriv() methods are used to create Decipher instances. Decipher objects are not to be created directly using the new keyword.
The Hash class is a utility for creating hash digests of data.
The Hash class is a utility for creating hash digests of data. It can be used in one of two ways:
The crypto.createHash() method is used to create Hash instances. Hash objects are not to be created directly using the new keyword.
The Hmac Class is a utility for creating cryptographic HMAC digests.
The Hmac Class is a utility for creating cryptographic HMAC digests. It can be used in one of two ways:
The crypto.createHmac() method is used to create Hmac instances. Hmac objects are not to be created directly using the new keyword.
The Sign Class is a utility for generating signatures.
The Sign Class is a utility for generating signatures. It can be used in one of two ways:
The crypto.createSign() method is used to create Sign instances. Sign objects are not to be created directly using the new keyword.
The Verify class is a utility for verifying signatures.
The Verify class is a utility for verifying signatures. It can be used in one of two ways:
The crypto.createSign() method is used to create Sign instances. Sign objects are not to be created directly using the new keyword.
Instances of the Cipher class are used to encrypt data. The class can be used in one of two ways:
The crypto.createCipher() or crypto.createCipheriv() methods are used to create Cipher instances. Cipher objects are not to be created directly using the new keyword.