Compare commits
No commits in common. "8b58de5a42830274507115294321be5426efb3aa" and "3fb4cce881683906955eea8ff8bd07225d8ca8b7" have entirely different histories.
8b58de5a42
...
3fb4cce881
13
COPYING
13
COPYING
@ -1,13 +0,0 @@
|
|||||||
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
|
||||||
Version 2, December 2004
|
|
||||||
|
|
||||||
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
|
|
||||||
|
|
||||||
Everyone is permitted to copy and distribute verbatim or modified
|
|
||||||
copies of this license document, and changing it is allowed as long
|
|
||||||
as the name is changed.
|
|
||||||
|
|
||||||
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
|
||||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
|
||||||
|
|
||||||
0. You just DO WHAT THE FUCK YOU WANT TO.
|
|
36
README
36
README
@ -1,36 +0,0 @@
|
|||||||
pwc
|
|
||||||
===
|
|
||||||
|
|
||||||
Password Copy.
|
|
||||||
|
|
||||||
Generate password and copy it to clipboard via xclip. Generated password will not printed in termainal. Default password lenght is 12 characters.
|
|
||||||
|
|
||||||
Installation
|
|
||||||
============
|
|
||||||
|
|
||||||
Just download pwc.py and place it into $PATH. ~/.local/bin/pwc is good choice. Don't forget give execution rights to file:
|
|
||||||
|
|
||||||
$ chmod +x pwc.py
|
|
||||||
|
|
||||||
pwc requires xclip package. Install xclip for your operating system.
|
|
||||||
|
|
||||||
Arch Linux:
|
|
||||||
|
|
||||||
$ sudo pacman -S xclip
|
|
||||||
|
|
||||||
Ubuntu/Debian:
|
|
||||||
|
|
||||||
$ sudo apt install xclip
|
|
||||||
|
|
||||||
Usage
|
|
||||||
=====
|
|
||||||
|
|
||||||
Usage: pwc [-h | --help] [-s | --special] [-p | --print] [<lenght>]
|
|
||||||
|
|
||||||
-s, --special use punctuation characters in password.
|
|
||||||
-p, --print print password to STDOUT instead of copy to clipboard.
|
|
||||||
-h, --help print this help message and exit.
|
|
||||||
|
|
||||||
Example:
|
|
||||||
|
|
||||||
$ pwc -s 32
|
|
6
pwc.py
6
pwc.py
@ -1,11 +1,5 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
# This program is free software. It comes without any warranty, to
|
|
||||||
# the extent permitted by applicable law. You can redistribute it
|
|
||||||
# and/or modify it under the terms of the Do What The Fuck You Want
|
|
||||||
# To Public License, Version 2, as published by Sam Hocevar. See
|
|
||||||
# http://www.wtfpl.net/ for more details.
|
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import getopt
|
import getopt
|
||||||
import subprocess
|
import subprocess
|
||||||
|
Loading…
Reference in New Issue
Block a user