import bcrypt
db = '1234'
db_bcr = bcrypt.hashpw(db.encode('utf-8'), bcrypt.gensalt()) # 암호화
db_decode = db_bcr.decode('utf-8') #str 변경
print(db_decode)
input = '12345'
pw_bcr = bcrypt.checkpw(input.encode('utf-8'), db_decode.encode('utf-8'))
print(pw_bcr)