19 lines
427 B
Python
19 lines
427 B
Python
from pathlib import Path
|
|
import sys
|
|
|
|
PROJECT_ROOT = Path(__file__).resolve().parents[1]
|
|
if str(PROJECT_ROOT) not in sys.path:
|
|
sys.path.insert(0, str(PROJECT_ROOT))
|
|
|
|
from src.core.auth import get_password_hash, verify_password
|
|
|
|
|
|
def main() -> None:
|
|
pw = "x" * 200 # bem maior que 72
|
|
h = get_password_hash(pw)
|
|
assert verify_password(pw, h)
|
|
print("OK:", h[:60], "...")
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|