Command-line password generator by calculating hashes
Winner of the 2022 Congressional App Challenge!
- Prompt for
seed
andkey
- Generate a hash of 46 integers between 0 and 255 with Argon2 using
seed
andkey
- Take the first 16 integers and convert them to a character string
res
using modulo indices - Using the next 16 integers:
- If the index is even, store the integer into the variable
pos
- If the index is odd, replace index
pos
ofres
with an indexed LOWERCASE character
- If the index is even, store the integer into the variable
- 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 - Print
res
and copy it to the system clipboard
Variant: Argon2id
Version: 13
Memory cost: 65536
Iterations: 4
Parallelism factor: 8
Hash length: 8