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
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.0.0.tar.gz
.
File metadata
- Download URL: f-passwords-generator-1.0.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0edcaebae03406625e83031001bf706935d7478fb251163b0643872a264ee88 |
|
MD5 | 2e58c0fadcd262f3490b43127b3db109 |
|
BLAKE2b-256 | 61bbcf81b75d9443cdfd679d6a34603b6166a716b2de6ead85cfd1a8249eb9e1 |
File details
Details for the file f_passwords_generator-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: f_passwords_generator-1.0.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ff5be1f5a25ab2419ca3135de2b13cbad7b984769767c4f7e25b12b918f8e82 |
|
MD5 | 550244a2ffdeef601d299c6665c21be7 |
|
BLAKE2b-256 | e7092c9b33bdd4debeef44e3e93c6be7b061b3a604a1a03ef29eea68984d8a87 |