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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: f-passwords-generator-1.0.1.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-1.0.1.tar.gz
Algorithm Hash digest
SHA256 04d00a6ceb9c7df5ad47e18a25d54cfb2ef3d2918d92458c91f9d67543de4121
MD5 c2f1ca733875c10265263173e6f0d842
BLAKE2b-256 9ff75493e184b4c966b4188be3445e544ffa6d97b0dd8ed220d119c48f7f71f9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: f_passwords_generator-1.0.1-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-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f309e14638ab21b80c5b3d2a87d4fd09ced99086d3ac79d5e18dc24706f139d2
MD5 4a89b0e8ccd8bc47459c7cde39af2ba4
BLAKE2b-256 eb36de87dc02a59d705797fe6ed5a334b4339a06b1481305245f4f6617f34440

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