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-1.0.2.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

f_passwords_generator-1.0.2-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: f-passwords-generator-1.0.2.tar.gz
  • Upload date:
  • Size: 3.4 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-1.0.2.tar.gz
Algorithm Hash digest
SHA256 3da5ec6375ae0b1b8478682fc4630c138f0d280ec3c1d77ae29c5cf0d0d07a5e
MD5 b16e19080aa8f12154b1004d57d4cec0
BLAKE2b-256 fe28def313a91640bc5c6b710465b2b74109fdd7bd6066232046d6b0fc96c1fd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: f_passwords_generator-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.5 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-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3e1f5e1f2710853c2c5b9ad21b13d95a5a0ba727f10657fb7c26d0cf382bee77
MD5 d06cdaf9e41dbdc86071d54eddc6b6a2
BLAKE2b-256 4f46719cb179c05bd3bffb17aac6e547c1fb62393480a033bad641a6cff597da

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