This versatile Python script, powered by the Tkinter library, provides a simple graphical interface to both verify whether a provided hash (MD5, SHA-1, SHA-256, SHA-384, SHA-512, BLAKE2b, or BLAKE2s) matches the content of a selected file and generate hashes for any file. This project was created with the purpose of learning Python.
- Python 3.x installed on your system.
- pyperclip v1.8.2
-
Download and Run the Executable:
- Obtain the executable file (
hashTools.exe) from your desired location and double-click to launch the application.
- Obtain the executable file (
-
Interact with the Graphical Interface:
-
The graphical interface is divided into two tabs: "Check Hash" and "Generate Hash."
-
Check Hash Tab:
- Use the dropdown menu to choose the hash function.
- Enter the hash to check in the provided field.
- Click the "Select file to check hash" button to choose the file.
- Click the "Check Hash" button to perform the verification.
-
Generate Hash Tab:
- Select this tab if you want to generate a hash for any file.
- Use the dropdown menu to choose the hash function.
- Click the "Select file to generate hash" button to choose the file.
- The generated hash will be displayed, and you can copy it to the clipboard using the "Copy Hash" button.
-
-
- Clone the repository to your local machine:
git clone https://github.com/Cayetano97/hashTools.git- Navigate to the project directory:
cd hashTools- Install the required dependencies using
pipand therequirements.txtfile:
pip install -r requirements.txt- Run the script:
python hashTools.pyExercise caution when handling files and providing hashes. Ensure a full understanding of the script's purpose and implications before use.
To verify the hash of a file using PowerShell:
-
Open PowerShell.
-
Navigate to the directory where your file is located using the
cdcommand. -
Use the
Get-FileHashcmdlet to calculate the hash of the file:Get-FileHash -Algorithm SHA256 .\your_file.txt
Replace your_file.txt with the actual name of your file.
Compare the displayed hash with the hash you want to verify. If they match, the file content is unchanged.
-
MD5
270d53e0285817fb74e4ac1294219047 -
SHA-1
2ba837628172bdef1a97fccff9509af133bb426f -
SHA-256
8d0d9a28014115f2358bbdb13d760f6b6cda478ae477fd8eade29fd431a08e54 -
SHA-384
6f09ef37afd599b697bbec07c4b7e90c1a53138be8380468515cb021bce611c764c4b06ba27e517866da5c0ce6d1a85a -
SHA-512
4852cc98a27cdac1c67cbccab1167601ab840bb3bcfe9990f22da4c65e779404c0c8dd545a43c018feb8e05bdb91868e0ee96028ef02d053aefccf00cb0d5e8f -
BLAKE2b
69f12a0bee9bc63f3bb326015f560b0a1749f97e029ad64e636bcefc02b1181e1f5ef09837fe494d337d8bb606c94b9c7c6694ecaed207cb18ca4c2082c9ad0d -
BLAKE2s
a3b4d28ad16805c46fd045abfa37e1bf382081768a73b123c01794eb4eb3dc01