Static ReadonlyAES_The total length in bytes each encrypted chunk will grow by (at most) for AES-CBC
Static ReadonlyAES_The length of the AES-CBC IV in bytes
Static ReadonlyAES_The length of the AES-CBC padding in bytes
Static ReadonlyAES_The total length in bytes each encrypted chunk will grow by (at most) for AES-GCM
Static ReadonlyAES_The length of the AES-GCM IV in bytes
Static ReadonlyAES_The length of the AES-GCM tag in bytes
Static ReadonlyAES_The seed length in bytes, used for generating keys
Static ReadonlySHA256_The length of the SHA-256 checksum in bytes
Staticbase2bufConvert a base64 string to a buffer
The base64 string to convert
The buffer
Staticbuf2baseConvert a buffer to base64
The buffer to convert
The base64 string
StaticdecryptDecrypt 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
StaticencryptEncrypt 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
StaticgenerateGenerate a key from a seed
The seed to generate the key from
The mode to generate the key in
The generated key
Staticgenerate
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)] }