Re: [PHP] XOR data encryption

2001-01-20 Thread Sean Cazzell

Steve,

If you're using MySQL, it has some built-in encryption functions that
would be slightly better than trying to implement XOR encryption in
PHP.  The best solution would be to use PGP or GPG (GNU Privacy Guard) to
encrypt the credit card numbers before you put them in the
database.


Regards,

Sean Cazzell


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




Re: [PHP] XOR data encryption

2001-01-20 Thread jeremy brand

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]




Re: [PHP] XOR data encryption

2001-01-20 Thread Todd Cary

I have some Delphi code that uses the XOR, if that would help.

Todd

--
Todd Cary
Ariste Software
[EMAIL PROTECTED]



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




[PHP] XOR data encryption

2001-01-20 Thread Steve Quezadas

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