MD5 / crypt
| From: | Dan Harrington | Date: | Tue, 06 Feb 2001 22:58:57 +0000 |
| Subject: | MD5 / crypt | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-38442@lists.php.net to get a copy of this message | ||
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