Re: storage of encrypted data
| From: | Curt Zirzow | Date: | Sun, 11 Jul 2004 20:13:01 +0000 |
| Subject: | Re: storage of encrypted data | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-190201@lists.php.net to get a copy of this message | ||
* 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 t to 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!