in reply to line by line Encryption fun with Crypt::CBC and Rijndael? File Ownership issues?
In both programs, you should binmode on the fh from which you read and on the fh to which you write. It makes a difference on some platforms, and won't harm anything on the others.
Also, flock FH_crypted, LOCK_EX; is useless unless you also use flock FH_crypted, LOCK_SH; in the decryptor.
|
|---|