Hi, All.
We have an existing perl application which encrypts data into hex string using Crypt::CBC, DES.
I am wondering if I can use php to decrypt the data that are passed along though URL. Below is my perl code:
use Crypt::CBC;
my $cypher = new Crypt::CBC("Secret Key", "DES");
my $text = "How are you doing?";
$enc_text = $cypher->encrypt_hex($text);
$text = $cypher->decrypt_hex($enc_text);
For example, the $enc_text might be sth like:
52616e646f6d4956df1e2f07c9d53
I want to pass this to php and have it decrypt it back into "How are you doing?"
Any idea?
Thanks.