in reply to Blowfish Encryption problem
In fact, if you have any intentions of encrypting more than eight bytes of data with this, or any other block cipher, you're going to need some type of block chaining help. Crypt::CBC tends to be very good at this. If you're not going to encrypt more than eight bytes, your data must be exactly eight bytes long.
So, your data isn't encrypted properly. Crypt::Blowfish only does its work on eight bytes a time -- a block. It's just that you can't tell until you go to decrypt it.
Crypt::CBC is a front-end to encryption modules that does the proper chaining, handles byte padding,etc. It's well documented.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Blowfish Encryption problem
by crep (Novice) on Jul 14, 2004 at 23:59 UTC | |
by thor (Priest) on Jul 15, 2004 at 04:22 UTC |