def obfuscate(self):
        """Obfuscate a string by using repeated xor"""

        out = ""
        
        data = self._string
        
        a0=ord(data[0])
        a1=ord(data[1])
        
        e0=chr(a0^a1)
        out += e0
        
        x=1
        eprev=e0
        while x<len(data):
            ax=ord(data[x])
            ex=chr(ax^ord(eprev))
            out += ex
            #throw some chaff
            chaff = chr(ord(ex)^ax)
            out += chaff
            eprev = ex
            x+=1

        return out
Obfuscate a string by using repeated xor
recipes/Python/189745_Symmetric_datobfuscatiusing/recipe-189745.py