http://www.perlmonks.org?node_id=137770


in reply to Re: (ichimunki) Re: Crypt::TripleDES decrypting problem
in thread Crypt::TripleDES decrypting problem

I think that's odd. It should be able to accept those \n-delimited records as unique bits, and you appeared to be storing them again as \n delimited records. Which means that maybe \n is not a reliable separator for whatever reason. Have you tried concatenating all of the records in the plaintext file before encrypting (i.e. keep the \n in there, just simply slurp the file into a scalar) and then decrypting that ciphertext as a single blob as well?