https://github.com/panastasiadis/hash-cracker
HashCracker is a small Python project that demonstrates basic password hashing and cracking functionality using SHA-256. It consists of two scripts - hasher.py and cracker.py - that generate hashed password files from a list of passwords and attempt to crack them, respectively.
https://github.com/panastasiadis/hash-cracker
coding cybersecurity education hashfunction opensource passwordcracking passwordhashing python sha256
Last synced: 9 days ago
JSON representation
HashCracker is a small Python project that demonstrates basic password hashing and cracking functionality using SHA-256. It consists of two scripts - hasher.py and cracker.py - that generate hashed password files from a list of passwords and attempt to crack them, respectively.
- Host: GitHub
- URL: https://github.com/panastasiadis/hash-cracker
- Owner: panastasiadis
- Created: 2023-02-17T16:07:14.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-17T16:08:41.000Z (about 3 years ago)
- Last Synced: 2023-09-11T10:28:54.142Z (over 2 years ago)
- Topics: coding, cybersecurity, education, hashfunction, opensource, passwordcracking, passwordhashing, python, sha256
- Language: Python
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# HashCracker
## Description
HashCracker is a small project that consists of two python scripts: `hasher.py` and `cracker.py`. The `hasher.py` script takes a list of passwords and creates usernames in format `userXXX` (where `XXX` are three digits) and then hashes the passwords with SHA-256 hash function and finally writes the resulting username-password hash pairs to a file. The `cracker.py` script compares a list of password hashes to a list of popular password hashes and writes username-password pairs to a file if there is a match.
## Usage
1. Run `hasher.py`:
```
python hasher.py
```
2. Run `cracker.py`:
```
python cracker.py
```
## Requirements
* Python 3.x
* hashlib
* csv
## Inputs
* `hasher.py` takes a csv file `passwords.csv` as input.
* `cracker.py` takes two csv files as input: `user_password_hashes.csv` and `popular.csv`.
## Outputs
* `hasher.py` outputs a csv file `user_password_hashes.csv`.
* `cracker.py` outputs a txt file `hits.txt`.
## Note
The provided code is only intended to demonstrate the basic functionality of hashing and password cracking, it is not intended to be used for any malicious purposes or in a production environment. Use it at your own risk.