in reply to Re^6: Decrypting BlowfishNET (try2)
in thread line by line Encryption fun with Crypt::CBC and Rijndael? File Ownership issues?
BlowfishSimple:
$fill = $unpadded_len % $block_size;
Crypt::CBC (by default):
$fill = $pad_size;
| size of padding | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | |||
| padded with | BlowfishSimple | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | (For cyphers with a blocksize of 8) |
| Crypt::CBC | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | ||
Update: I accidentally had the note about blocksize dependence attached to Crypt::CBC. Fixed.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: Decrypting BlowfishNET (try2)
by Anonymous Monk on Aug 20, 2009 at 17:32 UTC |