Skip to main content

A package to generate a passphrase or username

Project description

friendly-sniffle

Quickly and securely generate a username or a password from EFF Dicewords list.

Installation

$ pip install bk-generator

Usage

python

>>> import generate
>>> generate.generate_username(include_numbers)
>>> generate.generate_passphrase(num_words, separator, capitalize, include_numbers)

cli

$ generate --help
usage: generate.py [-h] {passphrase,username} ...

Generate a username or passphrase.

options:
  -h, --help            show this help message and exit

commands:
  valid commands

  {passphrase,username}
                        command to run
$ generate username -h
usage: generate.py username [-h] [-C] [-i]

options:
  -h, --help            show this help message and exit
  -C, --copy            Copy passphrase to clipboard
  -i, --include-numbers
                        Include numbers in passphrase
generate username
Fancy-Zebra
$ generate password -h
usage: generate.py passphrase [-h] [-C] [-i] [-n NUM_WORDS] [-c] [-s SEPARATOR | -xs]

options:
  -h, --help            show this help message and exit
  -C, --copy            Copy passphrase to clipboard
  -i, --include-numbers
                        Include numbers in passphrase
  -n NUM_WORDS, --num-words NUM_WORDS
                        Number of words in passphrase (default: 3)
  -c, --capitalize      Capitalize the first letter of each word

Separator options:
  -s SEPARATOR, --separator SEPARATOR
                        Separator between words (default: -)
  -xs, --no-separator   Do not use a separator between words
$ generate password -C -i
Rejoice-Jigsaw-Exact14

This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.

In jurisdictions that recognize copyright laws, the author or authors of this software dedicate any and all copyright interest in the software to the public domain. We make this dedication for the benefit of the public at large and to the detriment of our heirs and successors. We intend this dedication to be an overt act of relinquishment in perpetuity of all present and future rights to this software under copyright law.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

For more information, please refer to https://unlicense.org

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bk_generator-1.0.21.tar.gz (48.6 kB view details)

Uploaded Source

Built Distribution

bk_generator-1.0.21-py3-none-any.whl (49.2 kB view details)

Uploaded Python 3

File details

Details for the file bk_generator-1.0.21.tar.gz.

File metadata

  • Download URL: bk_generator-1.0.21.tar.gz
  • Upload date:
  • Size: 48.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for bk_generator-1.0.21.tar.gz
Algorithm Hash digest
SHA256 3955d70d0ee95d19e4369b961c9aa8f43fac03537ee5166309a91acf2c1f6078
MD5 21cdd9f8306fe4050e3830b3dd6ecafe
BLAKE2b-256 5a82d80a6f98ae8e6a68acf633f5a9b6d2535b47c61c3fe46be1261b1c32df9b

See more details on using hashes here.

File details

Details for the file bk_generator-1.0.21-py3-none-any.whl.

File metadata

File hashes

Hashes for bk_generator-1.0.21-py3-none-any.whl
Algorithm Hash digest
SHA256 3a7126952feedf094f269e88dbfcf68a9e77be4c3db108e87f4963f128e1552d
MD5 c58f254133c1afd1792cc02d6328a31c
BLAKE2b-256 fda16ca064d58a531e0f776c968ec26c7adbc83bdbdd5238cf146daa9eb85d31

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page