tet.util.crypt module
Password hashing utilities using passlib.
This module provides functions for securely hashing and verifying passwords using SHA-256 crypt.
Example
Hashing and verifying passwords:
from tet.util.crypt import crypt, verify
# Hash a password
hashed = crypt("my_secret_password")
# Verify a password
if verify("my_secret_password", hashed):
print("Password is correct!")
Note
For SQLAlchemy models, consider using tet.sqlalchemy.password.UserPasswordMixin
which integrates this functionality directly into your model.