A pacakge that can generate, validate, encode, and decode passwords. built with build using setuptools, uploaded to PyPI using twine, and distributed via pip.
Project description
passwordManagerByAscii Package
A pacakge that can generate, validate, encode, and decode passwords. built with build using setuptools, uploaded to PyPI using twine, and distributed via pip.
Checkout our package at pypi
Authors
- Victoria Zhang: Github
- Jenny Shen: Github
- Tiffany Lee: Github
- Seok Tae Kim: Github
- Khalifa AlFalasi: Github
Functions
Validate Password
- The 'validate_password' function can test if the user generated password is valid.
- In this package, there are two ways for users to generate password.
- Users can use the generate password function to generate a random password that meets the requirement
- Users can type in their own password and check if the user generated password is valid.
- Validate function is applicable for #2.
- When users generate a password, it checks if the password is at least 6 characters, contains at least 1 special character, and at least 1 capital alphabet to maintain security.
from passwordManager import validate validate = validate.validate_pasword(password)
Generate Password
- The
generate_password
function can generate a random password within length 6 to 15. The password is guarantee meet the requirement above. - Generate a password given a length. Note: if the length is greater than 15 or lower than 6. It will generate a random password within the 6 and 15 range.
from passwordManagerByAscii import generator password = generator.generate_password(10)
- Generate a password without specifying length. Will generate a password with random length within 6 and 15 range.
from passwordManagerByAscii import generator password = generator.generate_password()
Encode Password
- The
encode_password
function can encrypt a password with any length. - The encryption follows the following rules given a string:
- reverse the string
- swap the char pairs
- add dec by their (index+1), then (2(index+1), then 3(index+1) 3 times (3 character per string) Note: if the calculated value is over 126 then loop to 33 again by adding on the remainder.
from passwordManagerByAscii import encrypt encrypted = encrypt.encode_password("hello")
Decode Password
- The
decode_password
function can decrypt an encrypted password that is created by theencode_password
function. - Function takes in a string type and will raise error if unmatched types are give.
- Function will also raise error if the value in the string either does not match encryption format, or if any of the character is not in the decimal range of 33 to 126.
- Function returns a decoded string.
from passwordManagerByAscii import decoder, encrypt encrypted_password = encrypt.encode_password('hello') decoded_password= decoder.decode_password(encrypted_password) #decoded_password is 'hello'
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
Built Distribution
Close
Hashes for passwordManagerByAscii-0.2.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9f3665b4cdf03150e77ce517dedb4b343f42d572e8614b5b865bb5fa97db5e9 |
|
MD5 | ce4f6d335eac5ef964872ec57ec2c8d2 |
|
BLAKE2b-256 | 4988a82c5d4b8d3f620cf8165cfa006fbbae9a10121075960bb2a531ed4ae7cc |
Close
Hashes for passwordManagerByAscii-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55bee65a08bc453945a9b41c97071235a1c6c0429678d2ee00ae26e9d427d0f5 |
|
MD5 | 961e1783e40b2731acefeaa989fabac3 |
|
BLAKE2b-256 | 63c869a66853996549062649d503c7f871cb3787c31a6cb6a74313a77c44f427 |