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.
In reply to Re^7: Decrypting BlowfishNET (try2)
by ikegami
in thread line by line Encryption fun with Crypt::CBC and Rijndael? File Ownership issues?
by hmbscully
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |