A command-line tool to easily hash your own passwords
Go to file
nikobojs d9cf7be732 update readme 2021-09-20 09:29:58 +02:00
src initial commit 2021-09-19 18:59:35 +02:00
.editorconfig initial commit 2021-09-19 18:59:35 +02:00
.gitignore initial commit 2021-09-19 18:59:35 +02:00
LICENSE initial commit 2021-09-19 18:59:35 +02:00
README.md update readme 2021-09-20 09:29:58 +02:00
shard.yml initial commit 2021-09-19 18:59:35 +02:00

README.md

Hash your own passwords

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=

Installation

Run the application:

crystal run src/password_generator.cr

Compile a statically-linked executable:

crystal build src/password_generator.cr --release --no-debug --static

Contributing

  1. Fork it (https://git.nikobojs.com/nikobojs/password_generator)
  2. Create your feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create a merge request

Contributors