How to calculate si...
 
Notifications
Clear all

How to calculate single MD5 hash for multiple files

klllmmm
(@klllmmm)
New Member

I have several text files in a folder, and I'm trying to calculate a single MD5 hash value representing those text files in the folder.

Is there a free tool or windows/Linux command to get this done?

 I tried https://www.quickhash-gui.org/, but It will create only separate MD5 values for each file in the folder.

Also, I tried to create a zip file of the folder containing my set of files and created the hash value of the zip file. But I'm not sure that it is the right way.

Appreciate it if someone can tell me a way to do this. 

Quote
Topic starter Posted : 03/03/2021 6:00 am
Tecleo
(@tecleo)
New Member

You could use Nirsoft HashMyFiles

https://www.nirsoft.net/utils/hash_my_files.html

 

ReplyQuote
Posted : 03/03/2021 7:04 am
minime2k9
(@minime2k9)
Active Member

Use 7-zip, it will calculate the SHA1 hash of a folder. Won't do MD5 though

ReplyQuote
Posted : 03/03/2021 12:02 pm
test4forensic
(@test4forensic)
New Member

Create a folder and move those text file onto the folder. Use nirsoft hash my file and create hash of the folder.

ReplyQuote
Posted : 03/03/2021 12:55 pm
TuckerHST
(@tuckerhst)
Active Member

Also, I tried to create a zip file of the folder containing my set of files and created the hash value of the zip file. But I'm not sure that it is the right way.

There's nothing inherently wrong with that method. Many forensic software products use zip archives as the container for their forensic images. I used Axiom last week to download a Dropbox account. The result? A zip file. If I image an iPhone using an encrypted iTunes backup, I usually store the backup folders as a 7z and hash it as the "image." 7z or zip files can be ingested directly by Oxygen, for example.

If the zip software you're using is working properly, unzipped files should hash the same as the pre-zipped versions. You can test it yourself and see, and you can use HashMyFiles as a comparison.

ReplyQuote
Posted : 04/03/2021 4:45 pm
Share: