If you slurp the encrypted data in and decrypt the whole string in one go it does not corrupt:
open(INF1, "<", "$0.crypt") || die; open(OUTF1, ">$0.decrypt") || die; local $/=undef; my $in = <INF1>; print OUTF1 $cipher->decrypt($in); close(INF1); close(OUTF1);
In reply to Re: Crypt::CBC with Blowfish problem
by tirwhan
in thread Crypt::CBC with Blowfish problem
by zentara
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |