You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
468 B
Markdown

# password generate
Generate random passwords. Password is written to stdout and copied to the windows clipboard.
Place both scripts somewhere in your `%PATH%` on Windows, then execute `pw <num` from the "Run" window.
Usage:
```
./pw.py <length of password>
```
e.g.
```
./pw.py 32
```
### vim Shortcut
```
let pwcmd = 'cmd.exe /c "python C:\\Tools\\pw.py 10" |tr -d "\\n"|tr -d "\\r"'
:nmap <F8> "=system(pwcmd)<C-M>p
:imap <F8> <C-R>=system(pwcmd)<C-M>
```