AKEncryptionAES::AESDecryptCBC

AES decryption in CBC mode. This is the standard mode (the CTR methods actually use Rijndael-128 in CTR mode, which - technically - isn't AES).

Supports AES-128, AES-192 and AES-256. It supposes that the last 4 bytes contained a little-endian unsigned long integer representing the unpadded data length.

Signature

public function AESDecryptCBC(string $ciphertext, [string $password = 128, [integer $nBits = 128]] )

Parameters

$ciphertext
The data to encrypt
$password
Encryption password
$nBits
Encryption key size. Can be 128, 192 or 256

Returns

string
The plaintext