This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Customer Requirements for Developers and have Marcho Behler on-line!
See this thread for details.
The moose likes Java in General and the fly likes Hash value are not same Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Customer Requirements for Developers this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Hash value are not same" Watch "Hash value are not same" New topic
Author

Hash value are not same

Umesh Kilkile
Greenhorn

Joined: Mar 31, 2010
Posts: 11
Hi,

I've two Excel files with same data. One is in Excel 2003 (.xls) format and other one is in Excel 2007 (.xlsx) format. I've generated one way hash using SHA-1 algorithm. But the hash value of Excel 2003 files is not same as the hash value of Excel 2007 file.

What might be the problem.

Thank You,

Umesh Kilkile
Nawapunth Manusitthipol
Greenhorn

Joined: Aug 14, 2009
Posts: 14
xls is a binary format while xlsx is an xml based format so even if they contain the same data, their hash are not the same.


Middle path.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 20050
    
  30

To be even more precise, xlsx is a ZIP file with several XML files (and one binary file, xl\printerSettings\printerSettings1.bin) in it.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hash value are not same
 
It's not a secret anymore!