swee revised this gist 3 days ago. Go to revision
1 file changed, 6 insertions
clipboard_pass.py(file created)
| @@ -0,0 +1,6 @@ | |||
| 1 | + | import subprocess | |
| 2 | + | import secrets | |
| 3 | + | import string | |
| 4 | + | alphabet = string.ascii_letters + string.digits | |
| 5 | + | ||
| 6 | + | subprocess.run(["wl-copy"], input=(''.join(secrets.choice(alphabet) for i in range(20))).encode("UTF-8")) | |
Newer
Older