Created
June 16, 2020 13:12
-
-
Save BlackthornYugen/1423c08d79e689355be8bb4cc2e4d80e to your computer and use it in GitHub Desktop.
Generate a few passwords for haproxy (or other things that use unix style passwords)
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
#!/usr/bin/env bash | |
# Need a recent openssl to use -6 option (sha512). Either update openssl or change to -1 or similar if it doesn't work | |
shuf -n30 /usr/share/dict/words | tr '\n' ' ' | fold -s -w 48 | tr ' ' ';' | openssl passwd -6 -noverify -table -stdin | |
# Example Output: | |
#carrotwood;sacerdotalist;unfallible;homeliness; $6$xGj40hGX9L0NyToC$hqPn25jIFzS2vzfEVpsmzbDe3XeXtUkTJPHKBO7SI6FTkub4gqUWq5dpB8wfqkEoQClTmWkuiuN8K8eYIcfXL1 | |
#schoolteaching;moule;malesherbiaceous; $6$//mFpIknpKEToVt1$cyNLuPOsvPCW5KzJiS86rKKfonl8PBG0B/Xf5bLwiEvdcm64OX0jqwbhIxjOjrTejxUcB0ys.B0kdBLasb8l/. | |
#hypsophonous;ungroundedness;did;sapek; $6$NA29jYnRwQ1Tstlh$AW0NoJSKXCIiBo86FB9TKmD0aS67fcdtc.x8.VjeGgj287EuREkDWRmh/cxArFs8rGSM5eDPVC0kYyn52DlpX0 | |
#strepsinema;Thackerayana;camelman; $6$tze4YcdZgPo6e18o$PtsCCwvbkEuvfQoOnPH8ZErQeoGE8/PQvOhdkYioP687ZAujRbtK.IpKLSfVPM6tvsTkN9Z1qjrbssioezG1S. | |
#amyelencephalia;creeded;city;Triodon;oosporic; $6$Jh/vWDP3BM5Wah/X$CVfCUvFVVXQRBdGPo0x8YiIlLm0mm/4uadaHP39tCITxij8T98HMtVD9khCrVce0D.7AaC1cetiOlX/BF3IG.. | |
#shrinkingly;unambiguous;sleeveband;partisanship; $6$H/l4LzdyUcJCRs6g$AkWRoUDM68RfttXPP.hvOxmJtG00W1SZwSsmew/vGtHjULe.DbKVg4aIwmHrAzmBaa08mjzZEad8oMKLN35wn0 | |
#fancier;sublinear;unspeered;noncriminality; $6$Lzz7XUp5YjrJUBXf$Y7uGkn672IC4KbKqCkfNIUa6.CroF/5LzHNoekQX53mSzCGzhvp/WgsP/BVPG3dBeiifbCg9TQtylP.DYP7dn1 | |
#appendicostomy;rance;pecten; $6$v8jrBH.zv.QaJyi5$kyInLU8vrNwve8eUqEtQIUuuz0sYBsWirpVImYKykzGHuM72TBN4nZwj3Tg9D5gRDaj9dUSqj0UEsDsxdTCyv. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The goal was to make long passwords that are easier to type ( https://xkcd.com/936/ )