vncore / com.venuenext.vncore.security / Crypto / encryptCbc

encryptCbc

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

Encrypts the given plaintext with the given key under AES CBC with PKCS5 padding.

This method generates a random IV.

Return
Ciphertext and IV