Password Generator is a simple application that generates a random password. Skills will require a random number generator, working with strings, numbers, displaying, sequences.
-
create_simple_numeric_password (create a simple numeric password)
-
create_text_password (creating a text password lower - in lower case, upper - in upper case, mix - mixed mode)
-
create_complex_password (create a complex password using mixed-case letters, numbers and special characters)
-
create_hash_password (creating a password based on any existing hash function in python)
Server: Python 3.9^
# all imports
import create_simple_numeric_password
import create_text_password
import create_complex_password
import create_hash_password
# takes one parameter, reads the number
numericPass = create_simple_numeric_password(12)
print(numericPass)
- program response
>> 268545026164
# takes one parameter, reads the string
numericPass = create_simple_numeric_password('12')
print(numericPass)
- program response
>> 517370785526
# takes two parameters:
# 1. the first is a number
# 2. the second is a mode
# 2.1. three modes ['lower', 'upper', 'mix'])
textPass = create_text_password(16, register='mix')
print(textPass)
- program response
>> aPbBnmOlFAllcOPI
# takes one parameter
complexPass = create_complex_password(12)
print(complexPass)
- program response
>> wO}s3idhzDc1
# takes two parameters:
# 1. the first is a number
# 2. the second is a mode
# 2.1. {'shake_128', 'md5', 'shake256', 'md5-sha1', 'sha512-256',
# 'blake2s', 'sha512-224', 'sha3_512', 'sha3-256', 'sha384',
# 'sha3-224', 'sha256', 'sha3_256', 'whirlpool', 'sha3_384',
# 'sha1', 'shake128', 'sha3-512', 'md4', 'blake2b512', 'sha512',
# 'sha224', 'sm3', 'ripemd160', 'blake2s256', 'sha3_224',
# 'sha3-384', 'shake_256', 'blake2b'}
hashPass = create-hash-password('test', hash='sha256')
print(hashPass)
- program response
>> 9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08
I'm a beginner in Python development. Thank you for your understanding and support.