|
2 years ago | |
---|---|---|
src | 2 years ago | |
.editorconfig | 2 years ago | |
.gitignore | 2 years ago | |
LICENSE | 2 years ago | |
README.md | 2 years ago | |
shard.yml | 2 years ago |
password_generator
is command-line tool to generate passwords. It takes two parameters from STDIN: secret
and payload
.
With a hardcoded salt
and the 2 input variables, it generates a SHA256 hash, and displays it in base64.
Example usage:
Enter secret:
Enter payload: sentry
Result: +W2cbbQ39p+3R1Yszh7qXKrcpBVYgbLASU34SzO204Q=
Run the application:
crystal run src/password_generator.cr
Compile a statically-linked executable:
crystal build src/password_generator.cr --release --no-debug --static