[PHP] Re: Encryption Question

2004-06-22 Thread Kim Steinhaug
Do you really need to use stripslashes when retrieving the data? Wouldnt stripslashes only affect magic quotes or already added slashes, I mean when you addslashes to the SQL the slashes are indeed removed when inserted in the table. -- -- Kim Steinhaug

Re: [PHP] Re: Encryption Question

2004-06-22 Thread Justin Patrin
Jay Blanchard wrote: [snip] You should probably use mysql_escape_string or mysql_real_escape_string instead of addslashes and stripslashes. IMHO addslashes and stripslashes are pretty much useless. [/snip] That is an interesting take, why so? Because it can easily cause more problems than it fixe

RE: [PHP] Re: Encryption Question

2004-06-22 Thread Jay Blanchard
[snip] You should probably use mysql_escape_string or mysql_real_escape_string instead of addslashes and stripslashes. IMHO addslashes and stripslashes are pretty much useless. [/snip] That is an interesting take, why so? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: Encryption Question

2004-06-22 Thread Justin Patrin
Jay Blanchard wrote: Good morning gurus! I am encrypting some data on one server and now I am attempting to decrypt on another server using mcrypt_encrypt and mycrypt_decrypt (using same key and initialzation vector). It is almost working but I seem to still have a little problem, that data is m