i've tried using mcrypt library to decrypt some data i encrypted with perl but i can't seem to successfully decrypt the data.
i've tried searching google and phpbuilder but i can't seem to find any code that solves my problem... i would think it would be simple to decrypt... anyways here is the encryption routine in perl
#encryption routine
#input: text to encrypt
#returns: encrypted text
#returns encryption in HEX
sub gagaec {
my $cipher = new Crypt::CBC($gagakey, $gagaencrypt);
return $cipher->encrypt_hex($_[0]);
}
and the decryption routine in perl
#decryption routine
#input: text to decrypt
#returns decrypted text
sub gagadc {
my $cipher = new Crypt::CBC($gagakey, $gagaencrypt);
return $cipher->decrypt_hex($_[0]);
}