This is a discussion on Help with UNICODE md5... - Openssl ; I have a possible similar problem with checksums in MIC inside AS2. I did Marek's test just inside Kate editor saving in utf8, with and without the last newline. The one without gives the right code beginning with 8aa... AND ...
I have a possible similar problem with checksums in MIC inside AS2. I did
Marek's test just inside Kate editor saving in utf8, with and without the
last newline. The one without gives the right code beginning with 8aa...
AND yes with openssl, so there is no bug in it.
My problem is with this file
I get sha1 checksum IpWFspJ2hKwfja5CkOPnDW2ctT8= this is:
openssl sha1 -binary mictest.txt|openssl enc -a (base64 of binary checksum)
But WebSphere claims it to be Uiaz1kOChhlSb/f3SJsmJ/O/8SI=
The attached file is just what comes out after decrypting the received
message. It contains a binary signature, so in this case there should not
be any problem with newlines because that is what just comes out of the
The edi object in XML in first part of multipart contains UTF chars.
> For example after saving your example to /tmp/zz.txt I get:
> $ openssl md5 < /tmp/zz.txt
> after reading this line to ZZ variable:
> $ ZZ=`cat /tmp/zz.txt`
> $ echo $ZZ | openssl md5
> but when printing ZZ without new line:
> $ echo -n $ZZ | openssl md5
> Best regards,
> Marek Marcola
> __________________________________________________ ____________________
> OpenSSL Project http://www.openssl.org
> User Support Mailing List firstname.lastname@example.org
> Automated List Manager email@example.com
View this message in context: http://www.nabble.com/Help-with-UNIC...p17917667.html
Sent from the OpenSSL - User mailing list archive at Nabble.com.
OpenSSL Project http://www.openssl.org
User Support Mailing List firstname.lastname@example.org
Automated List Manager email@example.com