Takes user input and generates random passwords
Project description
A simple CLI program that takes user input for keywords, minimum password length, maximum password length, and any special characters to generate random password possibilities derived from the input. Also utilizes the Faker module to input dummy info.
Installation
Save the .py files under randompasswords and run it with python3. See requirements.txt for any module requirements and install them with pip
Or use pip to install randompasswords directly
pip install randompasswords
Usage
Code excerpt from __main__.py
from randompasswords.passwordgenerator import * from faker import Faker def main(): # import pdb # pdb.set_trace() fake = Faker() with open("pw.txt", "w+") as fh: # open or create a textfile to store inputted keywords inputKeywords(fh) fh.write(fake.email() + "\n") fh.write(fake.address() + "\n") fh.write(str(fake.longitude()) + "\n") fh.write(str(fake.latitude()) + "\n") with open("pw.txt", "r+") as fh: # takes keywords and puts them in data structures to prepare for generating pws storage = storeKeywords(fh) passwords = generatePasswords(storage) print("\nPrinting passwords now\n\n") with open("pw.txt", "a") as fh: storePasswords(fh, passwords) if __name__ == "__main__": main()
Acknowledgment
Thank you to Brett Beekley, my mentor for encouraging me and helping me think up this idea for a side project
License
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 randompasswords-1.0.0.tar.gz
.
File metadata
- Download URL: randompasswords-1.0.0.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f50408d3f9492f9bcc0a1a82f0191079ed86857f93a2f8f9a014a3bcbfd6f3c2 |
|
MD5 | badf585c2c372e21aa12d3992e221f1d |
|
BLAKE2b-256 | e9e5f047de36cad8c153787045dcaf57d399a67a1f4f874fe843801233327c5b |
Provenance
File details
Details for the file randompasswords-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: randompasswords-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a25fe1cd928b00d40e668c388b817675b13a4b02123ba31f0524e37a0bab8347 |
|
MD5 | 9a9096053394db748cc8738ec840c34a |
|
BLAKE2b-256 | 73434a60b249344e80d24010739e28b705568a397de20d79a719a3d5662ae284 |