note 34579 modified in ref.mcrypt by danbrown
| From: | danbrown@php.net | Date: | Mon, 13 Dec 2010 16:28:31 +0000 |
| Subject: | note 34579 modified in ref.mcrypt by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-174877@lists.php.net to get a copy of this message | ||
mcrypt_ecb with base64_decode gave some problems, i found out that it had to be chopped to work:
<?php
chop(mcrypt_ecb(MCRYPT_BLOWFISH,$key,base64_decode($input),MCRYPT_DECRYPT));
?>
--was--
mcrypt_ecb with base64_decode gave some problems, i found out that it had to be chopped to work:
chop(mcrypt_ecb(MCRYPT_BLOWFISH,$key,base64_decode
($input),MCRYPT_DECRYPT));
http://php.net/manual/en/ref.mcrypt.php