perlsameer has asked for the wisdom of the Perl Monks concerning the following question:
My code for DECRYPTION ::#!/usr/bin/perl use Crypt::Blowfish; my $key = pack("H16","0123456789ABCDEF"); my $cipher = new Crypt::Blowfish $key; chomp(my $plaintext = $ARGV[0]); my $ciphertext = $cipher->encrypt(pack("H16","sameer")); print unpack("H16",$ciphertext),"\n";
#!/usr/bin/perl use Crypt::Blowfish; my $key = pack("H16","0123456789ABCDEF"); my $cipher = new Crypt::Blowfish $key; chomp(my $ciphertext =$ARGV[0]); my $plaintext = $cipher->decrypt(pack("H16",$ciphertext)); print "$plaintext","--\n";
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Crypt Blowfish
by moritz (Cardinal) on Jul 15, 2008 at 12:06 UTC | |
| |
Re: Crypt Blowfish
by ikegami (Patriarch) on Jul 15, 2008 at 17:15 UTC | |
Re: Crypt Blowfish
by hawtin (Prior) on Jul 15, 2008 at 22:43 UTC | |
by ikegami (Patriarch) on Jul 16, 2008 at 05:48 UTC |