password-gen-win
by kaniamutan14
Generate random passwords of any length (up to 99) and automatically copy to clipboard. Optimized for Windows with native PowerShell.
A powerful, zero-dependency Espanso package for generating random passwords instantly. Designed specifically for Windows, it leverages native PowerShell to generate secure strings, paste them into your active window, and automatically save them to your clipboard.
Simply type a trigger followed by the 2-digit length you want.
Important: The length must always be two digits. For lengths less than 10, use a leading zero (e.g.,
08instead of8).
| Trigger | Complexity | Character Set | Example |
|---|---|---|---|
:pw[length] | Standard | Letters (A-Z, a-z) + Numbers (0-9) | :pw12 |
:pws[length] | Secure | Letters + Numbers + Symbols (!@#$...) | :pws16 |
:pwn[length] | Numeric | Numbers only (PIN style) | :pwn06 |
:pw12 results in: a7B2k9L1p4Xz:pws20 results in: k#9!2L$p*7xQ9^mN2@5z:pwn04 results in: 8293 (Perfect for quick PINs!)To ensure maximum speed and reliability, this package waits for exactly two digits after the prefix. This prevents the trigger from firing "too early" (e.g., firing on :pw2 before you have time to type the 0 for :pw20).
espanso package install password-gen-win
While designed for Windows, this package also works on macOS and Linux with PowerShell 7 (pwsh) installed. To enable this, either:
shell: powershell to shell: pwsh in package.yml, orpowershell to pwsh on your system.
Note for Linux users:
Set-Clipboardfunctionality to copy the password to clipboard may or may not work.