XKCDPass is a PowerShell module that provides a flexible and scriptable password generator which generates strong passphrases, inspired by XKCD 936.
The command which is exported from this module is Get-XKCDRandomPassword
.
Whilst this password generator is inspired by XKCD 936, its defaults have been configured in a way which gives this tool the most compatibility out of the box with the majority of services we use passwords for today. The defaults that we have set are:
- The password contains 4 words between 5 and 9 characters.
- The first letter of each word is capitalized.
- The passphrase is ended with two random digits.
This allows the password generator to provide passwords by default which will be strong, easy to remember, difficult to brute-force and still pass the usual requirements of at least one upper-case letter, one lower-case letter and at least 1 digit.
For support using this bot, please join our official support server on Discord.
The source code can be found here.
- PowerShell 5.1 or Above.
This module will work cross-platform with PowerShell 7.
Install-Module -Name XKCDPass
To generate a password using the defaukt settings, run the following command:
Get-XKCDRandomPassword
We also support the following parameters:
-NumWords
: The number of words to include in the password.-NumDigits
: The number of digits to include in the password.-MinWordLength
: The minimum length of a word to include in the password.-MaxWordLength
: The maximum length of a word to include in the password.-Seperator
: The seperator to use between words in the password.-Suffix
: The suffix to use at the end of the password.
An example using the above parameters can be found below:
Get-XKCDRandomPassword -NumWords 4 -NumDigits 3 -MinWordLength 4 -MaxWordLength 6 -Separator _ -Suffix !
This project is released under the GNU GENERAL PUBLIC LICENSE v3.