Re: XOR data encryption
| From: | jeremy brand | Date: | Sun, 21 Jan 2001 02:36:33 +0000 |
| Subject: | Re: XOR data encryption | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-35871@lists.php.net to get a copy of this message | ||
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 :: jeremy@nirvani.net
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 <steveeq2@tripperjones.com>
> To: php-general@lists.php.net
> 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
>
>