Command-line password generator by calculating hashes https://pashhash.github.io
  • Rust 66.1%
  • Nix 33.9%
Find a file
2025-12-08 00:16:44 -08:00
src feat: use default rustfmt config 2024-07-29 16:50:20 -07:00
.gitignore chore: flake.lock 2025-09-14 23:29:31 -07:00
Cargo.lock wayland clipboard 2024-03-24 15:00:02 -07:00
Cargo.toml wayland clipboard 2024-03-24 15:00:02 -07:00
flake.lock chore: flake.lock 2025-09-14 23:29:31 -07:00
flake.nix feat: package as nix flake 2025-09-14 23:23:46 -07:00
LICENSE Initial commit 2022-08-26 23:59:48 -07:00
README.md yes 2024-01-14 00:43:09 -08:00

🔒 hashword

Command-line password generator by calculating hashes

Winner of the 2022 Congressional App Challenge!

Algorithm

  1. Prompt for seed and key
  2. Generate a hash of 46 integers between 0 and 255 with Argon2 using seed and key
  3. Take the first 16 integers and convert them to a character string res using modulo indices
  4. Using the next 16 integers:
    1. If the index is even, store the integer into the variable pos
    2. If the index is odd, replace index pos of res with an indexed LOWERCASE character
  5. Repeat step 4 for UPPERCASE, NUMERIC, and SPECIAL characters
    Halve the number of integers taken in each iteration
    It can be proved that this produces at least 1 of each type of character in the final result
  6. Print res and copy it to the system clipboard

Argon2 config

Variant: Argon2id
Version: 13
Memory cost: 65536
Iterations: 4
Parallelism factor: 8
Hash length: 8