pycdn/test.py

11 lines
289 B
Python
Raw Permalink Normal View History

2023-04-06 23:58:56 +03:00
from passlib.hash import bcrypt
hashed = bcrypt.using(rounds=13, ident="2y").hash("yoFlOJ5k")
print("$2y$13$C8qbPrEGCbCGgUX9..5BNuzezT3ih9ZFeOgDuYSZ.f7f2SQf5gO0e")
print(hashed)
res = bcrypt.verify("yoFlOJ5k", "$2y$13$C8qbPrEGCbCGgUX9..5BNuzezT3ih9ZFeOgDuYSZ.f7f2SQf5gO0e")
print(res)