Crates.io | rustgenhash |
lib.rs | rustgenhash |
version | 0.10.0 |
source | src |
created_at | 2020-10-26 12:27:12.580132 |
updated_at | 2024-09-03 16:55:41.363259 |
description | A tool to generate hashes from the command line. |
homepage | https://github.com/vschwaberow/rustgenhash |
repository | https://github.com/vschwaberow/rustgenhash |
max_upload_size | |
id | 305608 |
size | 110,735 |
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. It can also help to identify the nature of a provided hash.
rustgenhash is written in Rust. You can install the tool with your Rust installation using following command:
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. The stdio mode allows you to pipe to the rgh
command. The tool will hash the passed
lines from the stdio (useful for hashing password lists).
The file mode supports hashing of multiple files in a directory and currently works non-recursive.
Scheme for string hashing:
rgh string -a <algorithm> <string>
Scheme for file hashing:
rgh file -a <algorithm> <filename or directory>
Scheme for string hashing from stdio:
cat myfile | rgh stdio -a <algorithm>
echo "mypassword" | rgh stdio -a <algorithm>
Scheme for analyzing a hash:
rgh analyze -a <algorithm> <hash>
Scheme for generating a HHHash of a provided url:
rgh header www.google.de
Scheme for comparing a hash:
rgh compare-string <hash1> <hash2>
Scheme for comparing hash files with each other:
rgh compare-file <file1> <file2>
Scheme for benchmarking a hash algorithm:
rgh benchmark -a <algorithm> -i <iterations>
You can list all supported algorithms over the help function.
Lastly, the tool offers the interactive mode:
rgh interactive
If you want to contribute to this project, please feel free to do so. I am happy to accept pull requests. Any help is appreciated. If you have any questions, please feel free to contact me.