import bcrypt passw=input("Enter password:").encode('UTF_8') encryp=bcrypt.hashpw(passw,bcrypt.gensalt()) print(encryp) if bcrypt.checkpw("12345678".encode('UTF_8'),encryp): print("matched") else: print("invalid")