Small python script to generate random passwords.
| pw.bat | ||
| pw.py | ||
| README.md | ||
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>