Compare commits

...

2 Commits

Author SHA1 Message Date
gd
8b58de5a42 add COPYING 2021-05-20 20:44:29 +03:00
gd
6e04a34fe8 add README 2021-05-20 20:25:27 +03:00
3 changed files with 55 additions and 0 deletions

13
COPYING Normal file
View File

@ -0,0 +1,13 @@
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 Normal file
View File

@ -0,0 +1,36 @@
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
View File

@ -1,5 +1,11 @@
#!/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 getopt
import subprocess