This PowerShell Script lets you calculate a hash of a given file and compares it with the original hash/checksum the user provides.
Simply execute the Script and follow the Steps for the hash calculation and verfication by choosing the menu point. You will have to provide a path to the file you want to calculate and you will have to paste the original hash/checksum to compare it. Currently this script supports every method which the cmdlet Get-FileHash supports.
- MACTripleDES
- MD5
- RIPEMD160
- SHA1
- SHA256
- SHA384
- SHA512
Simply execute the Script in a opened up PowerShell
After executing the script you will be presented a menu to choose which algorithm you want to calculate.
If you are calculating big files, the Script will show a progress bar, so you know the file is beeing calculated.
The Script will tell you if your file and the provided checksum is valid or not.
Example of a valid hash:
Example of a non valid hash:
The script also checks for a correct user input. If the file doesn't exist which the user provides, it throws an error message.
Get the Script here: File Hash Calculator Script