in reply to Re^2: Decrypting BlowfishNET (was Re^11: line by line Encryption ...)
in thread line by line Encryption fun with Crypt::CBC and Rijndael? File Ownership issues?
use strict; use warnings; use Crypt::Blowfish qw( ); use Crypt::CBC qw( ); use List::MoreUtils qw( apply ); use MIME::Base64 qw( decode_base64 ); my $key = '...'; my $ctext = decode_base64('...'); my $cipher = Crypt::Blowfish->new($key); my $iv = substr($ctext, 0, $cipher->blocksize(), ''); my $cbc = Crypt::CBC->new( -cipher => $cipher, -header => 'none', -iv => $iv, ); binmode(STDOUT); print($cbc->decrypt($ctext));
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Decrypting BlowfishNET (try2)
by samip (Novice) on Aug 11, 2008 at 12:46 UTC | |
by ikegami (Patriarch) on Aug 11, 2008 at 19:22 UTC | |
by samip (Novice) on Aug 12, 2008 at 13:00 UTC | |
by ikegami (Patriarch) on Aug 12, 2008 at 13:33 UTC | |
by Anonymous Monk on Aug 20, 2009 at 17:32 UTC |