app/utils/password_handle.py
@@ -31,13 +31,13 @@ async def password_encrypted(password): hash_pwd = cipher_suite.encrypt(password.encode("utf-8")).decode("utf-8") print(hash_pwd) # print(hash_pwd) return hash_pwd async def password_decrypted(hash_password): pwd = cipher_suite.decrypt(hash_password).decode("utf-8") print(pwd) # print(pwd) return pwd if __name__ == "__main__": # 生成一个10位的密码