First, could you confirm that you really need to ability to append record to an existing encrypted file?
Using my appendable format (which means you undid the Base64 encoding before storing the data):
utf8::decode( my $s = $cipher->decrypt( read_str($fh) ) );
Using my appendable format, but left the data Base64-endoded:
utf8::decode( my $s = $cipher->decrypt( decode_base64 ( read_str($fh) +) ) );
If you just dumped the return value of your encrypter to a file:
local $/; utf8::decode( my $s = $cipher->decrypt( decode_base64 ( <$fh> ) ) );
In reply to Re^9: line by line Encryption fun with Crypt::CBC and Rijndael? File Ownership issues? (code)
by ikegami
in thread line by line Encryption fun with Crypt::CBC and Rijndael? File Ownership issues?
by hmbscully
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |