Metadata-Version: 2.1
Name: cybarpass
Version: 2.0
Summary: Minimalistic Passphrase Generation script with GUI
Home-page: https://pass.cybar.dev
Author-Email: cybardev <sheikh@cybar.dev>
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Classifier: Operating System :: OS Independent
Project-URL: Homepage, https://pass.cybar.dev
Project-URL: Repository, https://github.com/cybardev/cybarpass.git
Project-URL: Documentation, https://github.com/cybardev/CybarPass/blob/main/README.md
Requires-Python: >=3.9
Description-Content-Type: text/markdown

# CybarPass

## Minimalistic Passphrase Generation script with GUI

<img width="562" alt="image" src="https://user-images.githubusercontent.com/50134239/229692629-20cb301f-b577-4e9b-9299-b25516116861.png">

### Dependencies

- Python >= 3.9
- `tkinter` module

**PS**: Also requires a word list file where each word is on a new line. You can supply your own, or, on MacOS and Linux, use `/usr/share/dict/words`.

### Installation

1. [Download](https://github.com/cybardev/CybarPass/releases/download/v2.0/passgen) the executable `passgen` from Releases or clone this repository using `git clone https://github.com/cybardev/CybarPass.git` and rename `passgen.py` to `passgen`

2. Place the executable `passgen` on `$PATH`

3. Run according to the instructions below

### Usage

1. GUI mode: run `passgen` in the terminal

2. GUI mode with word list preload: run `passgen -g /path/to/word/list`

3. CLI mode: run `passgen /path/to/word/list` with optional parameter `-n`

#### Help Screen

> output of `passgen -h`

```
usage: passgen [-h] [-n NUM] [-g] [WORD_LIST]

Generate a secure passphrase

positional arguments:
  WORD_LIST          Path to dictionary file

options:
  -h, --help         show this help message and exit
  -n NUM, --len NUM  Minimum length of passphrase
  -g, --gui          Run the program in GUI mode

Launch without arguments for GUI mode
or use -g | --gui with /path/to/word/list to preload the file

PS: -n | --len has no effect in GUI mode
```

#### Example Runs

```sh
$ passgen -h

$ passgen

$ passgen -g

$ passgen -g /usr/share/dict/words

$ passgen /usr/share/dict/words

$ passgen /usr/share/dict/words -n 512
```

**PS**: the above commands assume `passgen` is available on `$PATH` or is aliased to the executable file

### Resources

- [Developing a Full Tkinter Object-Oriented Application](https://www.pythontutorial.net/tkinter/tkinter-object-oriented-application/) on [pythontutorial.net](https://www.pythontutorial.net/)

- [Tkinter Grid](https://www.pythontutorial.net/tkinter/tkinter-grid/) on [pythontutorial.net](https://www.pythontutorial.net/)

- [Tkinter Open File Dialog](https://www.pythontutorial.net/tkinter/tkinter-open-file-dialog/) on [pythontutorial.net](https://www.pythontutorial.net/)

- [Tkinter – Read only Entry Widget](https://www.geeksforgeeks.org/tkinter-read-only-entry-widget/) on [GeeksforGeeks](https://www.geeksforgeeks.org/)

- [tkinter — Python interface to Tcl/Tk](https://docs.python.org/3/library/tkinter.html) on [docs.python.org](https://docs.python.org/)

- [Packaging Python Projects](https://packaging.python.org/en/latest/tutorials/packaging-projects/) on [packaging.python.org](https://packaging.python.org)

- [The .pypirc file](https://packaging.python.org/en/latest/specifications/pypirc/) on [packaging.python.org](https://packaging.python.org)
