So this is meant to address the problem of having to remember long, mixed case, alphanumeric passwords that contain special characters. It should work on android too if you have qpython.secret888 yields c"1#pGcE5*WVFYw>Vl+ZSQ1dsW.kd%WalJ&VYlhC with password length set to 40
Code:
#!/usr/bin/env python
import base64, random, hashlib #import the necessary modules
def hashPwd(pwd):
'''Use SHA512 to hash the password'''
h = hashlib.sha512()
byte_pwd = str.encode(pwd)
h.update(byte_pwd)
hashed_pwd = h.hexdigest()