in reply to OpenSSL and Crypt::CBC don't give the same ciphertext

Add binmode $infile; and see what happens
  • Comment on Re: OpenSSL and Crypt::CBC don't give the same cipher text ( binmode )

Replies are listed 'Best First'.
Re^2: OpenSSL and Crypt::CBC don't give the same cipher text ( binmode )
by LonelyPilgrim (Beadle) on Feb 06, 2016 at 00:18 UTC
    Thanks, but that doesn't make any difference. In any case, even if my input was somehow being corrupted (it was plain ASCII text), it was the same input being fed into both OpenSSL and Crypt::CBC.

      Thanks, but that doesn't make any difference. In any case, even if my input was somehow being corrupted (it was plain ASCII text), it was the same input being fed into both OpenSSL and Crypt::CBC.

      Also try  binmode $pipe; :)