Did I find the right examples for you? yes no

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

        def xor(str1, str2):
    length = max(len(str1),len(str2))
    return ''.join(chr(ord(charN(str1,i)) ^ ord(charN(str2,i))) for i in xrange(length))
        


src/f/o/fountaincode-HEAD/fountain.py   fountaincode(Download)
import random
from droplet import Droplet
from math import ceil
from utils import xor, randChunkNums
 
                data = self.chunk(num)
            else:
                data = xor(data, self.chunk(num))
 
        return Droplet(data, self.seed, self.num_chunks)

src/f/o/fountaincode-HEAD/glass.py   fountaincode(Download)
from utils import xor
 
class Glass:
    def __init__(self, num_chunks):
        self.entries = []
    def updateEntry(self, entry):
        for chunk_num in entry[0]:
            if self.chunks[chunk_num] is not None:
                entry[1] = xor(entry[1], self.chunks[chunk_num])
                entry[0].remove(chunk_num)