Last active
December 30, 2017 03:19
-
-
Save PSingletary/eb330e73ae4d58b15d0cf2e9675845cc to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#Source characters ABCDEGHJKLNPSTUYZ=#+acdeghiknopstuyz23456789 | |
#Arrays | |
$array4word = "able", "case", "come", "fact", "find", "give", "hand", "have", "high", "into", "know", "last", "life", "long", "make", "next", "over", "part", "same", "take", "that", "they", "this", "time", "want", "with", "work", "year" | |
$array5word = "about", "after", "child", "early", "first", "great", "group", "large", "leave", "other", "place", "right", "their", "there", "thing", "think", "woman", "world", "would", "young" | |
$arraySpecial = "#", "+", "=" | |
$arrayUpper = "A", "B", "C", "D", "E", "G", "H", "J", "K", "L", "N", "P", "S", "T", "U", "Y", "Z" | |
$arrayNumber = 2..9 | |
#Random selection from arrays | |
$rand4word_1 = $array4word[(Get-Random -Maximum ($array4word).count)] | |
$randSpecial = $arraySpecial[(Get-Random -Maximum ($arraySpecial).count)] | |
$rand4word_2 = $array4word[(Get-Random -Maximum ($array4word).count)] | |
$randUpper = $arrayUpper[(Get-Random -Maximum ($arrayUpper).count)] | |
$rand4word_3 = $array4word[(Get-Random -Maximum ($array4word).count)] | |
$randNumber = $arrayNumber[(Get-Random -Maximum ($arrayNumber).count)] | |
$rand5word = $array5word[(Get-Random -Maximum ($array5word).count)] | |
$Pswd = $randUpper + $randSpecial + $rand4word_1 + $rand4word_2 + $rand4word_3 + $randNumber + $rand5word |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment