Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: OpenSSL and Crypt::CBC don't give the same ciphertextby syphilis (Archbishop) |
on Feb 06, 2016 at 02:24 UTC ( [id://1154541]=note: print w/replies, xml ) | Need Help?? |
UPDATE: I fixed it .... It should have been H* instead of h* in my pack statements On my Windows machine I find that it does indeed need to be "H*". I also need to binmode $pipe if I want test.bin and cryptx.bin to agree. The contents of those 2 files will change (but still be in agreement) depending upon whether I binmode $infile. The binmode $infile therefore apparently affects what is fed in - but, as you observed, both ciphers will receive identical inputs in any case. I think (untested) you might be able to avoid the binmode calls if you're not on Windows. Cheers, Rob
In Section
Seekers of Perl Wisdom
|
|