note 28897 added to function.mcrypt-ecb
| From: | BrunoUsesBBEdit at rack1 dot php dot net | Date: | Mon, 27 Jan 2003 14:51:30 +0000 |
| Subject: | note 28897 added to function.mcrypt-ecb | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-42818@lists.php.net to get a copy of this message | ||
I'm not sure about the specifics yet, but here is a warning: It appears that Oracle has a
problem with some of the characters that this function may return.
Here is an example:
$valueToInsertIntoOracle=
mcrypt_ecb(
MCRYPT_TripleDES,
'mraw',
'cartridges',
MCRYPT_ENCRYPT,
64
);
storeInOracle($valueToInsertIntoOracle);
$valueSelectedFromOracle = getFromOracle();
$decryptedValue=
mcrypt_ecb(
MCRYPT_TripleDES,
'mraw',
$valueSelectedFromOracle,
MCRYPT_ENCRYPT,
64
);
echo $decryptedValue;
//Should return 'cartridges' but it does not. You get a garbled mess instead.
--
http://www.php.net/manual/en/function.mcrypt-ecb.php
http://master.php.net/manage/user-notes.php?action=edit+28897
http://master.php.net/manage/user-notes.php?action=delete+28897
http://master.php.net/manage/user-notes.php?action=reject+28897