Methods
decrypt
- decrypt(algorithm: CipherAlgorithm, key: Buffer, iv: Buffer, data: Buffer): Promise<Buffer>
-
Parameters
-
-
key: Buffer
-
iv: Buffer
-
data: Buffer
Returns Promise<Buffer>
encrypt
- encrypt(algorithm: CipherAlgorithm, key: Buffer, iv: Buffer, data: Buffer): Promise<Buffer>
-
Parameters
-
-
key: Buffer
-
iv: Buffer
-
data: Buffer
Returns Promise<Buffer>