RE: [PHP] MD5 / crypt

From: Date: Tue, 06 Feb 2001 23:07:27 +0000
Subject: RE: [PHP] MD5 / crypt
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-38446@lists.php.net to get a copy of this message
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

« previous php.general (#38446) next »