Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/d4v1-sudo/hash-calculator
Python script for easy hash calculation and verification with SHA-256, BLAKE-512, and BLAKE2b algorithms.
https://github.com/d4v1-sudo/hash-calculator
hash hash-calculator python python3
Last synced: about 18 hours ago
JSON representation
Python script for easy hash calculation and verification with SHA-256, BLAKE-512, and BLAKE2b algorithms.
- Host: GitHub
- URL: https://github.com/d4v1-sudo/hash-calculator
- Owner: d4v1-sudo
- License: mit
- Created: 2023-10-06T00:25:33.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-04-29T00:00:39.000Z (7 months ago)
- Last Synced: 2024-04-29T01:25:55.277Z (7 months ago)
- Topics: hash, hash-calculator, python, python3
- Language: Python
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Hash Calculator and Verifier
## Description
This Python script allows you to calculate or verify hashes using different algorithms, including SHA-256, BLAKE-512, and BLAKE2b. It provides options to calculate the hash of a message or verify if a given hash matches a message.
## Features
- **Multiple Algorithms**: Supports SHA-256, BLAKE-512, and BLAKE2b hash algorithms.
- **Hash Calculation**: Calculate the hash of a message using your chosen algorithm.
- **Hash Verification**: Verify if a hash matches a specific message.
- **Command-Line Interface**: Easy-to-use command-line interface for quick hash operations.## Usage
You can use this script in the following ways:
- **Calculate Hash**:
```shell
python3 script.py -e ""- **Verify Hash**:
```shell
python3 script.py -v "" ""- **Choose Algorithm**:
You can choose from the following algorithms:
- `--sha256`: SHA-256 (Default)
- `--blake512`: BLAKE-512
- `--blake2b`: BLAKE2b## Requirements
Ensure you have the required library installed:
```bash
pip install pycryptodome==3.11.0
```## Note
It isn't possible to decipher a hash. The reason is that a hash function is a one-way mathematical function. This means that while it's relatively easy to compute the hash of some data, it's extremely difficult (practically impossible) to reverse the process and obtain the original data from the hash. This property is essential for ensuring the security and integrity of cryptographic systems and digital signatures.