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.generator import PassGen
pass_gen = PassGen(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 two 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 = PassGen("demo text"); pass_gen.generate_password(); password = pass_gen.code\
  • pass_gen = PassGen(); pass_gen.generate_password("demo text", "demo key"); password = pass_gen.code
  • pass_gen = PassGen(); pass_gen.generate_password("demo text"); password = pass_gen.code
  • pass_gen = PassGen("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.1.1.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

f_passwords_generator-1.1.1-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: f-passwords-generator-1.1.1.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for f-passwords-generator-1.1.1.tar.gz
Algorithm Hash digest
SHA256 94a11111354157b3fc348a8fd27e74db3903702473d5579df185e5c9686f66ec
MD5 c9ea519f12d3b56e13872aee266b52c1
BLAKE2b-256 5f08767bc9da91ddfa9beefd7b7d9dba26fb6c5728972a90dd02815541dfe550

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for f_passwords_generator-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 db286f7c5a7a4826b9b98a3e0d420055689e5ab9eb19343ebe97dd06de652110
MD5 15358f626c3b53d0e5c8b18a831e120c
BLAKE2b-256 a4ba3ad621a028f200d47dd1a6238d050736ae973b7d7ae0202883b29a09be64

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