PHP - MCRYPT - CBC - IDEA
| From: | Frantzcy Paisible | Date: | Fri, 05 Nov 2004 18:10:43 +0000 |
| Subject: | PHP - MCRYPT - CBC - IDEA | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-201298@lists.php.net to get a copy of this message | ||
Hi all,
I'm looking for some information, rearging mcrypt.
Now, I've been through the normal channels, I've been going in in cercles.
I need to recreate this perl script in php :
sub cryptage
{
use Crypt::CBC;
$key = "SuperFreak";
my $action = shift;
my $string = shift;
my $c = new Crypt::CBC($key,"IDEA");
if ($action == 1) { #- crypt
return $c->encrypt_hex($string);
} else { #- decrypt
return $c->decrypt_hex($string );
}
As you can notice it uses CBC, and IDEA.
MCRYPT_IDEA (non-free) is all I get from the net, where can I purchase it ?
Or better yet, how can I recreate this function in PHP ?
even a simple "Look this way" would help.
Thanx
Frantzcy
--
Sleep, sometime in MAY... if lucky