crypt.decrypt
Decrypts AES-encrypted Base64 ciphertext.
function crypt.decrypt(datadatastringBase64-encoded ciphertext.: string, keykeystringBase64-encoded 256-bit key.: string, ivivstringBase64-encoded IV.: string, modemodestringCipher mode used during encryption.: string): stringstringThe decrypted plaintext.Usage
Decrypt
local plain = crypt.decrypt(ciphertext, key, iv, "CBC")
print(plain)