def determine_hash(hash_value: str) -> str:
    """Determine hash type by length."""
    hash_length = len(hash_value)
    if hash_length == 128:
        return "SHA512"
    elif hash_length == 64:
        return "SHA256"
    elif hash_length == 40:
        return "SHA1"
    elif hash_length == 32:
        return "MD5"
    elif hash_length == 8:
        return "CRC32"
    else:
        return "CTPH"