RE: [PHP] encrypting (low level)

From: Date: Tue, 14 Nov 2000 18:19:20 +0000
Subject: RE: [PHP] encrypting (low level)
Groups: php.general 
Request: Send a blank email to php-general+get-25214@lists.php.net to get a copy of this message
<? $Key="Key-Longer_Than_Password"; $Password="Secret"; $Encrypted=$Password ^ $Key; $Original_Password=$Encrypted ^$Key; print "The original Password is: $Original_Password<BR>"; ?> The original Password is: Secret ----- NOTE, The value of $Encrypted may not be a printable string(especially in a broswer). It should work fine for your purposes. Mike -----Original Message----- From: Boget, Chris [mailto:Chris.Boget@wild.net] Sent: Tuesday, November 14, 2000 12:34 PM To: 'Krznaric Michael'; 'Myke Hines'; PHP (E-mail) Subject: RE: [PHP] encrypting (low level) > You can always use the XOR property. The property says that > given some number/string X, if you XOR your String/Password > with X twice you will get back the original password. > Eg. > Password XOR Key = Encrypted_Password > Encrypted_Password XOR Key = Password Code example, please? What I tried didn't do anything so I'm not sure if I'm doing it right... Chris

« previous php.general (#25214) next »