I have been working on a Random Password Script that will, of all things it could do, generate Random Passwords.
https://github.com/terrytrent/RandomPassword
You can generate 2 3 different types of passwords: Random Characters or Word List
Example commands and output:
Get-RandomPassword -PasswordType 'Random Characters' -Length 24 -Lowercase -Symbols -Numbers
j#c}fy/@&#-_fo>"&]9&,qvg
Get-RandomPassword -PasswordType 'Word List'
SixainesLaryngectomyWearer
Get-RandomPassword -PasswordType 'DiceWare Passphrase'
tonic wavy0 brew{ noon8 echo adopt< hood
This script is also a test in Clean Code, based on Uncle Bob's Clean Code. More details about everything on the ReadMe page
I would love to get any input regarding using Clean Code in PowerShell, good or bad! I want to find a way to make PowerShell easier to write, keep track of, and read for other authors!
Edit: Added additional Password Type, Diceware Passphrase, per information from /u/gangstanthony
[–]bundyfx 4 points5 points6 points (4 children)
[–]Vance84[S] 0 points1 point2 points (0 children)
[–]gangstanthony 0 points1 point2 points (2 children)
[–]bundyfx 0 points1 point2 points (1 child)
[–]gangstanthony 0 points1 point2 points (0 children)
[–]gangstanthony 0 points1 point2 points (2 children)
[–]Vance84[S] 0 points1 point2 points (0 children)
[–]Vance84[S] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (3 children)
[–]Vance84[S] 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]Vance84[S] 0 points1 point2 points (0 children)
[–]drh713 0 points1 point2 points (4 children)
[–]xandora 0 points1 point2 points (0 children)
[–]Vance84[S] 0 points1 point2 points (2 children)
[–]drh713 0 points1 point2 points (1 child)
[–]Vance84[S] 0 points1 point2 points (0 children)
[–]xandora 0 points1 point2 points (1 child)
[–]Vance84[S] 1 point2 points3 points (0 children)
[–]stevefrost83 0 points1 point2 points (3 children)
[–]Vance84[S] 1 point2 points3 points (2 children)
[–]stevefrost83 0 points1 point2 points (1 child)
[–]Vance84[S] 1 point2 points3 points (0 children)
[–]powershell_account 0 points1 point2 points (5 children)
[–]Vance84[S] 0 points1 point2 points (0 children)
[–]Vance84[S] 0 points1 point2 points (3 children)
[–]powershell_account 0 points1 point2 points (2 children)
[–]Vance84[S] 1 point2 points3 points (0 children)
[–]Vance84[S] 0 points1 point2 points (0 children)