vncore / com.venuenext.vncore.security / Crypto / encryptGcm

encryptGcm

fun encryptGcm(plaintext: ByteArray, key: ByteArray): Ciphertext

Encrypts the given plaintext with the given key under AES GCM.

This method generates a random nonce.

Return
Ciphertext and nonce