I've run into this befor run base64_encode() on the string befor you pass it
around then base64_decode() after you get it where its going.
- James
> Hello,
>
> What is the best way to encrypt/decrypt strings when passing between php
> pages?
>
> I am using md5 and currently get strings that produce "unprintable"
> characters
> or characters like slashes or other things that could interfere with the
> passing
> between php pages. (e.g.
> http://server.asdf/action.php?args=encryptedstring )
>
> e.g.
> 5V"g\7`Qv1Sc]aV&Q4a6#bW>SbU!f_4V1QvPaUe 5Q!c b
>
> versus
>
> something like:
> fdsay98fdsa25ht4636ussd9fg3245ijrg9u341271234hjas897rewq
>
> I really would like to restrict everything to 0-9,a-z,A-Z characters so
> the encrypted string is "friendly" :-)
>
> Thanks
> Dan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]