

def check_password(raw_password, enc_password):
    '\n    Returns a boolean of whether the raw_password was correct. Handles\n    encryption formats behind the scenes.\n    '
    (algo, salt, hsh) = enc_password.split('$')
    return (enc_password == encrypt_password(raw_password, algorithm=algo, salt=salt))

dataset/ETHPy150Open SmartTeleMax/iktomi/iktomi/auth.py check_password/original