DaWolf has asked for the wisdom of the Perl Monks concerning the following question:
and, to decrypt:#!c:/perl use Crypt::Blowfish; while ($pass = <>) { chomp $pass; $key = pack ("H16","0123456789ABCDEF"); $cipher = new Crypt::Blowfish $key; $ciphertext = $cipher->encrypt("$pass"); print unpack ("H16",$ciphertext),"\n"; }
So, if I try to put the encrypted string for the module to decrypt it, it returns this:#!c:/perl use Crypt::Blowfish; while ($pass = <>) { chomp $pass; $key = pack ("H16","0123456789ABCDEF"); $cipher = new Crypt::Blowfish $key; $ciphertext = $cipher->decrypt("$pass"); print unpack ("H16",$ciphertext),"\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Basic Crypt::Blowfish usage question
by danger (Priest) on Mar 31, 2002 at 05:54 UTC | |
by DaWolf (Curate) on Mar 31, 2002 at 07:06 UTC | |
|
Re: Basic Crypt::Blowfish usage question
by Ryszard (Priest) on Mar 31, 2002 at 00:17 UTC | |
by runrig (Abbot) on Mar 31, 2002 at 04:52 UTC | |
by DaWolf (Curate) on Mar 31, 2002 at 00:42 UTC | |
by Ryszard (Priest) on Mar 31, 2002 at 00:59 UTC |