@classmethod
    def hashStringForPath(cls, path):
        """
        Returns the hash for a project's DerivedData location.
        
        path is the filesystem path to the .xcodeproj file.
        """
        hash_context = hashlib.md5();
        hash_context.update(path);
        md5_digest_hex = hash_context.digest();
        
        hash_path = [None] * 28;
        
        first_value = struct.unpack('>Q', md5_digest_hex[:8])[0];
        
        counter = 13;
        while counter >= 0:
            hash_path[counter] = chr((first_value % 26) + ord('a'));
            first_value = first_value / 26;
            counter -= 1;
        
        second_value = struct.unpack('>Q', md5_digest_hex[8:])[0];
        
        counter = 27;
        while counter > 13:
            hash_path[counter] = chr((second_value % 26) + ord('a'));
            second_value = second_value / 26;
            counter -= 1;
        
        hash_path = ''.join(hash_path);
        
        return hash_path;
dataset/ETHPy150Open samdmarshall/xcparse/xcparse/Helpers/xcrun_helper.py/xcrun_helper.hashStringForPath/original