rustgenhash is a tool to generate hashes on the commandline from stdio.
It can be used to generate single or multiple hashes for usage in password databases or even in penetration testing scenarios where you want to test password cracking tools.
rustgenhash is written in Rust. You can install the tool with your Rust installation using following command:
bash
cargo install rustgenhash
Rustgenhash has a command line interface which allows you to set the utility into a specific operating mode. The current modes are
After selecting the mode you will need to provide the -a switch for selecting a suitable hashing algorithm and a string or file to be hashed.
Scheme is for string hashing:
bash
rustgenhash string -a <algorithm> <string>
Scheme is for file hashing:
bash
rustgenhash file -a <algorithm> <filename>
bash
rustgenhash -a <HASH_ALGORITHM> <String>
You can list all algorithms over the help function.
Supported are: