Andre_br has asked for the wisdom of the Perl Monks concerning the following question:
I´m in need of thy help. I want to encript (and later decrypt) a string with more than 8 words. Crypt::Blowfish and all others seem to accept only 8-bytes-long strings!!! How to overcome this?
Thanks a lotuse Crypt::Blowfish; my $key = pack("H16", "0123456789ABCDEF"); # min. 8 bytes my $cipher = new Crypt::Blowfish $key; my $ciphertext = $cipher->encrypt("but my string has more than 8 byt +es!!!!"); # SEE NOTES print unpack("H16", $ciphertext), "\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Encrypting strings with more than 8 bytes.
by Aristotle (Chancellor) on Jan 13, 2006 at 01:33 UTC | |
|
Re: Encrypting strings with more than 8 bytes.
by athomason (Curate) on Jan 13, 2006 at 05:07 UTC | |
|
Re: Encrypting strings with more than 8 bytes.
by diotalevi (Canon) on Jan 13, 2006 at 05:43 UTC | |
by tirwhan (Abbot) on Jan 13, 2006 at 07:26 UTC | |
by diotalevi (Canon) on Jan 13, 2006 at 14:27 UTC | |
by tirwhan (Abbot) on Jan 13, 2006 at 16:37 UTC | |
by diotalevi (Canon) on Jan 13, 2006 at 16:40 UTC | |
| |
by thor (Priest) on Jan 13, 2006 at 15:43 UTC | |
by diotalevi (Canon) on Jan 13, 2006 at 16:19 UTC |