Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: OpenSSL and Crypt::CBC don't give the same cipher text ( binmode )

by beech (Parson)
on Feb 06, 2016 at 00:08 UTC ( [id://1154533]=note: print w/replies, xml ) Need Help??


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; :)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1154533]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2024-04-24 09:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found