Strong Passwords Generator made with python.
Project description
f-passwords-generator
Strong Passwords Generator made with python.
How to use
from passwords_generator import PasswordGenerator
pass_gen = PasswordGenerator(plain_text=None, key_phrase=None)
pass_gen.generate_password(text=None, key=None)
password = pass_gen.password
Make it a command line tool
- first you need to install python in your machine.
- install pyinstaller with
pip install pyinstaller
. - run
pyinstaller passwords_generator/__main__.py --name pass-gen
. - if you in linux make a symlink of
dist/pass-gen/pass-gen
in/bin
or/home/username/bin
to use it from terminal. - 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(plain_text=None, key_phrase=None)
method can accept two optional arguments
plain_text
: is the text to be ciphered
key_phrase
: 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:
Example 1:
from passwords_generator import PasswordGenerator
pass_gen = PasswordGenerator("demo text")
pass_gen.generate_password()
password = pass_gen.password
Example 2:
from passwords_generator import PasswordGenerator
pass_gen = PasswordGenerator()
pass_gen.generate_password("demo text", "demo key")
password = pass_gen.password
Example 3:
from passwords_generator import PasswordGenerator
pass_gen = PasswordGenerator()
pass_gen.generate_password("demo text")
password = pass_gen.password
Example 4:
from passwords_generator import PasswordGenerator
pass_gen = PasswordGenerator("demo code", "demo key")
pass_gen.generate_password()
password = pass_gen.password
pass_gen.code
is the result of the encryption
if the key is not set, the class will randomly generate one
Command Line Usage
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file f-passwords-generator-1.2.0.tar.gz
.
File metadata
- Download URL: f-passwords-generator-1.2.0.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 849ed2e93e06746b087a7e499585840ea55497e7e23dad6d4ffddf16567ee1be |
|
MD5 | 824d293def3c13009a98eeffac05bafb |
|
BLAKE2b-256 | a31737677219b53aba38bfad958fe48d8c007de3c54a21c8ebc40847464bdbb7 |
File details
Details for the file f_passwords_generator-1.2.0-py3-none-any.whl
.
File metadata
- Download URL: f_passwords_generator-1.2.0-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65604feb2997fc45ab1e24ebc739cd99584f1300f1ca7303889c476f0ca60b33 |
|
MD5 | 034bef6bec12aaa38c81b30df9975bae |
|
BLAKE2b-256 | 29e88954441e6c0135fb46cf314e6dcc16e3a00e95a8f87d14326f997070f89d |