def check_hash(password, hashed_pw): hashed_pw, salt = hashed_pw.split(':') return hashed_pw == hashlib.sha256(salt.encode() + password.encode()).hexdigest() # Prompts the user for text input