Quantcast
Channel: Aspose.Email Product Family
Viewing all articles
Browse latest Browse all 1367

MD5 hashvalue

$
0
0
Hi,
I have extracted all the messages from a PST file and created a new PST file.

When I compare the MD5 hashvalue of the messages in the original pst file and the messages in the new pst file the hash values are different.  If I compare the hashvalues of the .msg files - hashvalues are same but if I compare the hashvalues of .eml files then it's different.

 when I compared the contents - the content is same but the boundary value is different  so the hash values are different for eml files


Also how to compute the Hashvalue  directly - there is no way to get the contents of the mapi message as a byte[].
currently I am saving the message to disk as a .msg file and again loading the message as inputstream and then computing the hashvalue - Is there any direct way to get the contents and compute the hash values directly so that I can save two I/O operations?

message.save(fileName);
FileInputStream is = new FileInputStream(fileName);
String hashvalue = DigestUtils.md5Hex(is);


Viewing all articles
Browse latest Browse all 1367

Trending Articles