k_pass
Python package to generate random strong password and OTP.
Description
- The package has a function named
GenPass()which can generate random passwords and OTP which contains random UpperCase letters, LowerCase letters, Special and Numeric Characters. - By default the generated password will be a mixture of random UpperCase letters, LowerCase letters, Special and Numeric Characters, and the length will be also a random number between 16-32.
- User can customize the password generation by passing some arguments to the generation function.
- User can customize the password length by passing a numeric value to the
lengthparameter. - There are other 4 boolean parameters to control the generated password's characters.
- boolean
upperparameter for UpperCase Letters. - boolean
lowerparameter for LowerCase Letters. - boolean
specialparameter for Special Characters. - boolean
numberparameter for Numbers.
- boolean
- By default, all the boolean parameters will be false. This will generate a random password consist of mixed characters.
- To enforce custom charset, one should pass True value to the parameters regarding those charsets.
Installation
To install, write the following command in your terminal.
pip install k_pass
Examples
Import the function to your code.
from k_pass import GenPass
- Generate a random password using default parameters.
password = GenPass()
- Generate a random password of a fixed length(mixed characters).
password = GenPass(8)
- Generate a random password of a fixed length and consist of only UpperCase letters.
password = GenPass(8, upper=True)
- Generate a random password of a random length and consist of only LowerCase letters.
password = GenPass(lower=True)
- Generate a random password of a fixed length and consist of only Numbers(i.e OTP).
password = GenPass(6, number=True)
- Generate a random password of a random length and consist of only Special Characters.
password = GenPass(special=True)
- Generate a random password of a fixed length and consist of only Special Characters and UpperCase letters.
password = GenPass(8, upper=True, special=True)
Author
Wahid Sadique Koly
License
This project is licensed under the MIT License - see the LICENSE file for details
Metadata
Release files for k-pass 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| k_pass-0.0.2.tar.gz | 3.4 kB | Without provenance | Details for k_pass-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| k_pass-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for k_pass-0.0.2-py3-none-any.whl |
Total release size: 7.4 kB
Release files / k_pass-0.0.2.tar.gz
| Download URL | k_pass-0.0.2.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f6a6d842a74d255aae4b98b0848bbe05c34f788ef09c5b18ee777832325671b6
|
|
BLAKE2b-256 checksum How to use checksums |
9cca9e16bdaed0e50feb753332d488758b9bd2c0d0ed59e0b0b87b447c28119d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.0
|
Release files / k_pass-0.0.2-py3-none-any.whl
| Download URL | k_pass-0.0.2-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b101ea2692a5d61fb8f5d420c8ad55ca325e197091a3bffdd02574a426c2bc16
|
|
BLAKE2b-256 checksum How to use checksums |
6d06ddbe2a87d9cc3b49fe6fff2859fc740306f64c2313311db488bb2181f194
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.0
|
Security for k-pass 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.