'Identify the type of hash in a hash string.
Args:
hash_str: A string value that may be a hash.
Returns:
A string description of the type of hash.'

def GetHashType(self, hash_str):

    for (hash_type, hash_re) in self.hashes:
        if hash_re.match(hash_str):
            return hash_type
    return 'EMPTY'
