#cli #crypto #hashes #rust

no-std app rustgenhash

A tool to generate hashes from the command line

44 releases

new 0.8.5 Dec 4, 2023
0.8.4 Nov 30, 2023
0.8.1 Sep 10, 2023
0.8.0 Jul 20, 2023
0.2.2 Nov 4, 2020

#622 in Cryptography

Download history 41/week @ 2023-08-14 1176/week @ 2023-08-21 448/week @ 2023-08-28 57/week @ 2023-09-04 57/week @ 2023-09-11 6/week @ 2023-09-18 5/week @ 2023-09-25 2/week @ 2023-10-02 3/week @ 2023-10-09 4/week @ 2023-10-16 21/week @ 2023-10-23 58/week @ 2023-10-30 70/week @ 2023-11-06 12/week @ 2023-11-13 75/week @ 2023-11-20 129/week @ 2023-11-27

287 downloads per month

MIT license

1.5K SLoC


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

  • analyze
  • random
  • stdio
  • string
  • file
  • header

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

You can list all supported algorithms over the help function.


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.


~405K SLoC