Go to file
TiredFromTelehack c7fd3e4325 Updated PoW generator to set difficulty max to 1500 and time cost to always be 1 2024-10-18 02:24:11 +02:00
README.md Update README.md 2024-10-15 13:16:27 -05:00
pow_generator.py Updated PoW generator to set difficulty max to 1500 and time cost to always be 1 2024-10-18 02:24:11 +02:00
proof_of_work.sh Updated proof_of_work.sh with input validation and improvements 2024-10-18 01:50:35 +02:00

README.md

Proof of Work Script

This bash script implements a Proof of Work (PoW) algorithm using the Argon2 hashing function. It is designed to solve a mining challenge based on given parameters, making it suitable for educational purposes or testing PoW implementations.

Table of Contents

Features

  • Checks for required utilities (argon2, xxd, bc).
  • Accepts a challenge code as input, either via command line or prompt.
  • Iteratively generates and hashes candidate passwords until a valid solution is found.
  • Displays the solution once it meets the required difficulty.

Requirements

Ensure the following utilities are installed on your system:

  • argon2: A secure hashing algorithm for password hashing.
  • xxd: A tool for creating a hex dump from a binary file and vice versa.
  • bc: An arbitrary precision calculator language.

You can install these utilities on Debian/Ubuntu-based systems with:

Usage

sudo apt-get install argon2 xxd bc
git clone https://github.com/TiredFromTelehack/proof-of-work-solver.git
cd proof-of-work-solver
chmod +x proof_of_work.sh
./proof_of_work.sh "262144:1:SALTe7e590c2f902:1500"