note 34868 deleted from function.mcrypt-ecb by didou
| From: | didou@php.net | Date: | Sat, 09 Aug 2003 03:21:24 +0000 |
| Subject: | note 34868 deleted from function.mcrypt-ecb by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-53719@lists.php.net to get a copy of this message | ||
Note Submitter: walo@walo.com.ar
----
Easy example:
$key = "password";
$input = "word to encrypt";
$encrypted_data = @mcrypt_ecb(MCRYPT_SAFER64, $key, $input, MCRYPT_ENCRYPT);
echo $encrypted_data;
$dencrypted_data = @mcrypt_ecb(MCRYPT_SAFER64, $key, $encrypted_data, MCRYPT_DECRYPT);
echo $dencrypted_data;