Skip to main content

Strong Passwords Generator made with python

Project description

f-passwords-generator

Strong password generator with python

How to use

from passwords_generator import FPassGen
pass_gen = FPassGen(text=None, key=None)
pass_gen.generate_password(text=None, key=None)
password = pass_gen.code
or
import passwords_generator
pass_gen = pass_gen.FPassGen(text=None, key=None)
pass_gen.generate_password(text=None, key=None)
password = pass_gen.code

Make it a command line tool

  • first you need to install python in your machine
  • install pyinstaller with pip install pyinstaller
  • run pyinstaller --onefile --name pass-gen __main__.py
  • if you in linux copy the dist/pass-gen to /bin or /home/username/bin
  • if on windows just add it to the PATH

Now you can just open terminal/command-prompt and type pass-gen

More about the module

On python script

generate_password method can accept to optional arguments
generate_password(text=None, key=None)
text: is the text to be ciphered
key: is the key to be used in the generation key optional in the constructor and the method, but the text must be set in one of them

examples:\

  • pass_gen = FPassGen("demo text") pass_gen.generate_password() password = pass_gen.code\
  • pass_gen = FPassGen() pass_gen.generate_password("demo text", "demo key") password = pass_gen.code
  • pass_gen = FPassGen() pass_gen.generate_password("demo text") password = pass_gen.code
  • pass_gen = FPassGen("demo code", "demo key") pass_gen.generate_password() password = pass_gen.code

pass_gen.code is the result of the encryption

if the key is not set, the class will randomly generate one

Command Line Usage

the same if you launch it from terminal examples:

  • $ pass-gen
  • $ pass-gen "demo text"
  • $ pass-gen "demo text" "demo key"

results:

  • in case one: the terminal will prompt to ask you for the text and generate a random key
  • in case tow: the terminal will take the entered text and encrypt it with a random generated key
  • in case three: the terminal will take the entered text and encrypt it with the given key

we will add more functionality in the future

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

f-passwords-generator-0.1.0.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

f_passwords_generator-0.1.0-py3-none-any.whl (2.0 kB view details)

Uploaded Python 3

File details

Details for the file f-passwords-generator-0.1.0.tar.gz.

File metadata

  • Download URL: f-passwords-generator-0.1.0.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for f-passwords-generator-0.1.0.tar.gz
Algorithm Hash digest
SHA256 cc32edc9cfd9407366fb81dad7c8f0a46cff2120ce3404e1fe19232053d3fb4d
MD5 c520b86e9cd235b61ccf6447949551a9
BLAKE2b-256 4d2b7d053a544b76f43dc2bfe42770020ae66fc1376bf0b788241d4a549b0b3e

See more details on using hashes here.

File details

Details for the file f_passwords_generator-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: f_passwords_generator-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for f_passwords_generator-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 55496165a0b4ed6d65875b10949c96f3f1c91cc3464b4ca5b49f5030e9680bcd
MD5 fbb5f88a94ed2742d7088012aa90fb52
BLAKE2b-256 e3895e17165c7f49277444537bdd9e22a094d1e35a5466add950bb73eb2b9005

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