This project consists of two Python scripts: main.py
and program_hash.py
, each serving different purposes.
This script (main.py
) visualizes the time needed to encrypt a given phrase using various hashing algorithms available in the hashlib
module. It generates a bar chart using Plotly to represent the encryption time for each algorithm.
- Install the required dependencies by running:
pip install -r requirements.txt
- Run the script using Python:
python main.py
- Follow the prompts to input a phrase and visualize the encryption time for each algorithm.
This script (program_hash.py
) verifies whether a specific Linux ISO file (linuxmint-21.3-xfce-64bit.iso
) has the correct SHA-256 hash. The hash value is compared with the expected hash value (CORRECT_HASH
) defined in the script.
-
Ensure that the correct Linux ISO file (
linuxmint-21.3-xfce-64bit.iso
) is present in the specified path (in my case-) (/mnt/c/Users/jaros/Downloads/
). -
Run the script using Python:
python program_hash.py
-
Follow the prompts to choose whether to verify the hash or to read the hash of the file.
- Python 3.x
- Plotly