note 4951 deleted from function.mcrypt-ecb by derick
| From: | derick@php.net | Date: | Sun, 12 May 2002 15:51:05 +0000 |
| Subject: | note 4951 deleted from function.mcrypt-ecb by derick | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-30537@lists.php.net to get a copy of this message | ||
mcrypt_ecb
mcrypt_ecb -- Encrypt/decrypt data in ECB mode
Description
int mcrypt_ecb(int cipher, string key, string data, int mode);
mcrypt_ecb() encrypts or decrypts (depending on mode) the data with cipher and key in ECB 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.
See also: mcrypt_cbc(), mcrypt_cfb(), mcrypt_ofb()