Class: AESCipher

AESCipher

new AESCipher(key, iv, bits, mode)

AES cipher.

Parameters:
Name Type Description
key Buffer
iv Buffer
bits Number
mode String
Source:

Methods

final() → {Buffer}

Finalize the cipher.

Source:
Returns:
Type
Buffer

update(data) → {Buffer}

Encrypt blocks of data.

Parameters:
Name Type Description
data Buffer
Source:
Returns:
Type
Buffer