in reply to Re: Encrypt text in perl and decrypt in a windows tool
in thread Encrypt text in perl and decrypt in a windows tool
------------------------------ The value of "$ciphertext" is send as part of mail body. I want to decrypt the value of "$ciphertext" using a Windows based tool. Please adviceuse Crypt::CBC; use Crypt::Blowfish; my $key = "abcdefghijlmnopqrstuvwxyz"; my $cipher = Crypt::CBC->new( -key => "$key", -cipher => 'Blowfish', ); my $ciphertext = $cipher->encrypt("3769-198501-21002"); my $plaintext = $cipher->decrypt($ciphertext); print "$key\n"; print "$ciphertext\n"; print "$plaintext\n";
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Encrypt text in perl and decrypt in a windows tool
by jettero (Monsignor) on Jun 10, 2010 at 15:15 UTC | |
by asidnayak (Initiate) on Jun 11, 2010 at 05:00 UTC |