After a certain amount of fiddling (there is no Crypt::CBC
on activestate and Crypt::Blowfish has no start/finish
methods, for 2) it seems you may have trouble
w/ padding. Blowfish encrypt/decrypt want 8 byte
buffers, so I had to manually pad the last read for
encrypting w/ spaces (not \0 that made my cygnus diff
call it a binary file ;-) and that threw off the diff
as it was missing a final \n. Winxx worked w/o the
stty (so you can see passwds, though
my cygnus stty (once I added it to the
path) worked well) . Very important:
the ever-popular
binmode, on IN/OUT for encrypting and decrypting.
I, of course, added -w/use strict, but that didn't
help too much, except for complaining about your
pass cache business, using pw.$_] before it was
initialized and that "if @{ $todo{encrypt} } ..." didn't
exist - 'course, you don't need the @{ at the checking
if anything's to be encrypted stage, so its still
a good idea. Soooooo, my guess: padding on the last
read IN is messing up the exact return on decrypt.
I'm constantly amazed that this stuff'll work on winxx
period, maybe its not just a toy OS ... nah.
I tested it on on 131k file - but this all may be rot
if the CBC wrapper/start/finish stuff handles the
padding properly.
a
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.