encryptAES256

open fun encryptAES256(plaintext: ByteArray, secret: ByteArray): ByteArray

AES256 encryption of arbitrary length messages. A random initialization vector (IV) is generated and included with the ciphertext. For the maximum size efficiency when the IV can be inferred or calculated and the size is known use encryptAES256by16

Return

ciphertext or an empty array. The ciphertext length will be different than the plaintext