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)