RC4 encryption with PHP

From: Date: Sun, 24 Feb 2002 00:14:16 +0000
Subject: RC4 encryption with PHP
Groups: php.db 
Request: Send a blank email to php-db+get-17231@lists.php.net to get a copy of this message
I am trying to encrypt a credit card number using rc4 and php and then dump it into a mySql database. Does anyone have any sample code that allows me to do this?? I found the Class.RC4Crypt algorithm and would like to use that. When I include the class.rc4crypt.php the page dies... Here is my code... // encrypt the credit card number here. include("class.rc4crypt.php"); $pass = $whatever; $data = $cardInfo['number']; $case ='de'; $rc4 = new rc4crypt; $encrypt_CC = endecrypt($pass, $data, $case); then I will send $encrypt_CC to the DB.. Any help would be greatly appreciated..thx Troy

« previous php.db (#17231) next »