Static
Readonly
AES_The total length in bytes each encrypted chunk will grow by (at most) for AES-CBC
Static
Readonly
AES_The length of the AES-CBC IV in bytes
Static
Readonly
AES_The length of the AES-CBC padding in bytes
Static
Readonly
AES_The total length in bytes each encrypted chunk will grow by (at most) for AES-GCM
Static
Readonly
AES_The length of the AES-GCM IV in bytes
Static
Readonly
AES_The length of the AES-GCM tag in bytes
Static
Readonly
AES_The seed length in bytes, used for generating keys
Static
Readonly
SHA256_The length of the SHA-256 checksum in bytes
Static
base2bufConvert a base64 string to a buffer
The base64 string to convert
The buffer
Static
buf2baseConvert a buffer to base64
The buffer to convert
The base64 string
Static
decryptDecrypt data with a key
The data to decrypt
The key to decrypt the data with
The mode to decrypt the data in
The decrypted data
Static
encryptEncrypt data with a key
The data to encrypt
The key to encrypt the data with
The mode to encrypt the data in
The encrypted data
Static
generateGenerate a key from a seed
The seed to generate the key from
The mode to generate the key in
The generated key
Static
generate
The default encryption/decryption class for !3.
The encrypted data will be structured as follows:
{ [IV (16 bytes)] ( Encrypted Data: [Checksum (32 bytes)] [Data] [Padding (up to 16 bytes)] ) }
{ [IV (12 bytes)] ( Encrypted Data: [Checksum (32 bytes)] [Data] ) [Tag (16 bytes)] }