Created
June 5, 2018 18:54
-
-
Save katcaola/65cb75569c8c37aed75e5bb57f383404 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo 'some-password' | mkpasswd --stdin --method=sha-512 --salt="$(od -tx1 -N8 -An </dev/urandom | tr -dc '[:xdigit:]')" | |
# What is this? | |
# Get 16 teaspoons of salt | |
$ od -tx1 -N16 -An </dev/urandom | tr -dc '[:xdigit:]' | |
# Mix well with hashed browns | |
echo 'hashed browns' | mkpasswd --stdin --method='sha-512' --salt='<PASTE OUTPUT FROM OD HERE>' | |
# Notes: | |
# Go to the grocery store and get 1 lb of mkpasswd | |
sudo apt-get install whois | |
# Because | |
$ dpkg -S $(command -v mkpasswd) | |
whois: /usr/bin/mkpasswd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment