crypto.Cipher()
Description
Creates an instance of Cipher.
Syntax
new crypto.Cipher(algorithm,{key,iv,})
Parameters
new crypto.Cipher(algorithm, options)
algorithmoptions
A string containing the name of the encryption algorithm.
Options including:
- key - A string or a Data object containing the key for encryption.
- iv - A string or a Data object containing the IV (Initialization Vector) for encryption.
Return Value
A Cipher object using the specified algorithm and key.