These are standalone versions of the password generators from ss64.com.
There are two password generators:
- The standard one
- The strong one
Here there are three versions of each of these generators:
- Bash
- zsh
- Powershell
- Standalone HTML + Javascript
-
copy
passwdgen.bashfrom thebashsubdirectory into your home directory -
add the following line to your
.bashrc:source passwdgen.bash
Next time you start bash, you can use the following commands:
strongpw site1 [site2...]
stdpw site1 [site2...]
You will be prompted for the master key. Then, if there is only one site specified, you will get the password into the clipboard, else passwords will be echoed in your terminal.
An additional verification code will appear, that will be always the same (depends only on the typed-in master key). It can help you detect whether you mistyped your key.
-
copy
passwdgen.zshfrom thezshsubdirectory into your home directory -
add the following line to your
.zshrc:source passwdgen.zsh
Next time you start zsh, you can use the following commands:
strongpw site1 [site2...]
stdpw site1 [site2...]
You will be prompted for the master key. Then, if there is only one site specified, you will get the password into the clipboard, else passwords will be echoed in your terminal.
An additional verification code will appear, that will be always the same (depends only on the typed-in master key). It can help you detect whether you mistyped your key.
-
Make a
Documents\WindowsPowerShell\Modules\PasswdGensubfolder in your user profile folder -
Copy the
.psd1and.psm1files into that folder -
In your user profile, create the file
Microsoft.PowerShell_profile.ps1in the subfolderDocuments\WindowsPowerShellif it does not exist, and then add the following line:Import-Module PasswdGen -
If your Powershell execution policy does not allow scripts, duplicate a powershell shortcut and add
-ExecutionPolicy Unrestrictedto the command line; use that shortcut to start Powershell when using the scripts
Next time you start Powershell (with the appropriate execution policy), you can use the following commands:
Get-StrongPw site1 [site2...]
Get-StdPw site1 [site2...]
They work exactly like the bash counterparts.