mcrypt, postgres, only returning half the data
| From: | John Starkey | Date: | Wed, 15 Aug 2001 06:30:04 +0000 |
| Subject: | mcrypt, postgres, only returning half the data | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-11358@lists.php.net to get a copy of this message | ||
Hello all
I'm working on encoding some data going in and decrypting coming out of postgres. I'm
adding slashes going in and stripping them coming out. Using BLOWFISH and I've tried several
different modes. But each time the data comes out I'm only getting half-decrypted data, it
seems to hang at a random spot. The same for each piece of data but random in terms of different for
each entry (confusing the issue enough?).
I'm using mcrypt_encrypt and mcrypt_decrypt. When I test it on the same page (without going
through the database) it decrypts fine, perfect as a matter of fact. But coming out of the DB, the
same data is trashed.
Is there any special way to send (or abstract) encrypted data into (from) the DB? I've been
through the archives and it doesn't look like anyone has posted a problem like this. Am I the
only one :}
Thanks,
John
--
John Starkey
ColoradoParks.net
Advance Creations