[PHP] storage of encrypted data

2004-07-11 Thread klaus
Hi all,

I want to store PHP-encrypted (Rijndael_256) data in MySQL.

The problem is:
If the encrypted string includes  the MySQL-query is influenced.

Therefore the question:
Is it possible to define characters   n o tto be used by the
crypto-function?

Greetings
Klaus

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] storage of encrypted data

2004-07-11 Thread Curt Zirzow
* Thus wrote klaus:
 Hi all,
 
 I want to store PHP-encrypted (Rijndael_256) data in MySQL.
 
 The problem is:
 If the encrypted string includes  the MySQL-query is influenced.
 
 Therefore the question:
 Is it possible to define characters   n o tto be used by the
 crypto-function?

no.

Simply use mysql_real_escape_string() on the encrypted string.


Curt
-- 
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about.  No, sir.  Our model is the trapezoid!

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php