How to hash files in Windows 10 into a file

Getting the MD5 hash of a file on Linux is very easy. However, in Windows, there are several utilities, but using Windows internally inbuilt command certutil, it can be done as follows in the Windows shell:

C:>for /r %%f in(x) do (certutil -hashfile "%%f" MD5) >> output.txt

output.txt will contain the files with their MD5 hashes.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s