aspose file tools*
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 Spring in Action this week in the Spring 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: 19719
    
  20

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
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