MD5 hash for zip files
问题 Is it possible to generate MD5 hash for .zip files in java? All the examples I found were for .txt files. I want to know when we unzip the data, edit a file, again zip it and find the hash, will it be different from the original one? 回答1: You can create MD5 hashes for any arbitrary file, independently of the file type. The hash just takes any byte stream and doesn't interpret its meaning at all. So you can use the examples you have found for .txt files and apply them to .zip files. And yes,