in reply to Encrypt text in perl and decrypt in a windows tool
Normally you wouldn't use Crypt::Blowfish directly. Choose Crypt::CBC and make sure to use binmode where necessary. Most likely you forgot a bunch of sticky little details like padding and initialization vectors and things. Let CBC do the work:
my $cipher = Crypt::CBC->new(-key => 'my secret key', -cipher => 'Blow +fish'); my $crypted = $cipher->encrypt("blarg!!"); my $text = $cipher->decrypt($crypted); # blarg
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Encrypt text in perl and decrypt in a windows tool
by asidnayak (Initiate) on Jun 10, 2010 at 14:19 UTC | |
by jettero (Monsignor) on Jun 10, 2010 at 15:15 UTC | |
by asidnayak (Initiate) on Jun 11, 2010 at 05:00 UTC |
In Section
Seekers of Perl Wisdom