<commit_before># Linux Password Hash (written in Python)

The idea behind this script is to allow for system administrators to hash people's passwords
without giving them access to the server they need the password on. 

I've seen some scary techniques in the past, including but not limited to:

- Giving out passwords
- Giving someone access to a Linux box to type the password
- Making temp passwords and then sending em via e-mail or PostIt

This essentially diminishes those techniques, because while we are letting that other person
type their password using getpass(), we're never seeing the password (as a Linux Sys Admin),
and we're just getting the final SHA-512 hash, with a random Salt.

This will be a limited use case, because it's designed to be used for SSH/e-mail passwords,
assuming you use Linux user auth for your e-mail server (most MTAs support this). However,
it is used quite often in the groups I'm in so, here's to releasing this quick script.

As always, questions/comments are appreciated.

Much Love,

Dave.
<commit_msg>Add more information about command usage<commit_after># Linux Password Hash (written in Python)

The idea behind this script is to allow for system administrators to hash people's passwords
without giving them access to the server they need the password on. 

I've seen some scary techniques in the past, including but not limited to:

- Giving out passwords
- Giving someone access to a Linux box to type the password
- Making temp passwords and then sending em via e-mail or PostIt

This essentially diminishes those techniques, because while we are letting that other person
type their password using getpass(), we're never seeing the password (as a Linux Sys Admin),
and we're just getting the final SHA-512 hash, with a random Salt.

This will be a limited use case, because it's designed to be used for SSH/e-mail passwords,
assuming you use Linux user auth for your e-mail server (most MTAs support this). However,
it is used quite often in the groups I'm in so, here's to releasing this quick script.

As always, questions/comments are appreciated.

Much Love,

Dave.

## Using the Sucker

Pretty easy. If you're running on a Linux system, just use `chmod +x passwordhasher.py` to make
the file executable, and then run `./passwordhasher.py`. It will ask for a password, and then a
confirmation password. Assuming you get everything right, it will spit out a hash ready for usage
in your `/etc/shadow` file.

I may have added some neat quotes too. You're welcome.

{'fraction_non_alphanumeric': 0.04720349067830226, 'fraction_numerical': 0.002380007933359778, 'mean_word_length': 4.287211740041928, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6214403', 'n_tokens_mistral': 662, 'n_tokens_neox': 613, 'n_words': 406}