Feel free (as in public domain) to use this function:
http://www.nirvani.net/software/misc/xor_string-1.0.0.inc.asc

Jeremy

Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED]
http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    "LINUX is obsolete"  -- Andy Tanenbaum, January 29th, 1992
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
       http://www.JEEP-FOR-SALE.com/ -- I need a buyer
  Get your own Free, Private email at http://www.smackdown.com/

On Sat, 20 Jan 2001, Steve Quezadas wrote:

> Date: Sat, 20 Jan 2001 13:41:20 -0800
> From: Steve Quezadas <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: [PHP] XOR data encryption
> 
> I am trying to store some credit card numbers in a database, along with the rest of 
>the data (dangerous, I know). Unforunately, I am using a provider that doesn't have 
>the mcrypt functions compiled into PHP, so I guess I am stuck using the swiss-cheese 
>like XOR method of encryption. My client is too cheap to put a separate server to 
>store the credit card numbers, so I am stuck using symmetrical encryption.
> 
> NEvertheless, I want to implement XOR, but I can't find an example on the net that 
>shows how to do it in PHP. I know the philosophy behind it, but hwo do you do it? Do 
>you convert the letters in the passphrase and the credit card number into 0 1 binary 
>and then XOR that? What commands are there iN PHP that converts from alphanumeric to 
>binary? If someone could post an example, that would be great.
> 
> - Steve
> 
> 


-- 
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]

Reply via email to