Description
string mcrypt_cbc (int cipher, string key, string data, int mode [, string
iv])
Mcrypt_cbc() encrypts or decrypts (depending
on mode) the data
with cipher and key
in CBC cipher mode and returns the resulting string.
Cipher is one of the MCRYPT_ciphername
constants.
Key is the key supplied to the
algorithm. It must be kept secret.
Data is the data which shall be
encrypted/decrypted.
Mode is MCRYPT_ENCRYPT or MCRYPT_DECRYPT.
IV is the optional initialization vector.
See also: mcrypt_cfb(),
mcrypt_ecb(), and
mcrypt_ofb().