(self, data)
return ''.join(out)
Apply the [en|de]cryption routine
           to the data.
Apply the [en|de]cryption routine
           to the data.
Apply the [ en|de ] cryption routine to the data .
def crypt(self, data):
        """Apply the [en|de]cryption routine
           to the data.
        """
        x = 0
        box = range(256)
        for i in range(256):
            x = (x + box[i] + ord(self.key[i % len(self.key)])) & 0xff
            box[i], box[x] = box[x], box[i]
        x = y = 0
        out = []
        for char in data:
            x = (x + 1) & 0xff
            y = (y + box[x]) & 0xff
            box[x], box[y] = box[y], box[x]
            out.append(chr(ord(char) ^ box[(box[x] + box[y]) & 0xff]))
        return ''.join(out)
def crypt ( self , data ) : x = 0 box = range ( 256 ) for i in range ( 256 ) : x = ( x + box [ i ] + ord ( self . key [ i % len ( self . key ) ] ) ) & 0xff box [ i ] , box [ x ] = box [ x ] , box [ i ] x = y = 0 out = [ ] for char in data : x = ( x + 1 ) & 0xff y = ( y + box [ x ] ) & 0xff box [ x ] , box [ y ] = box [ y ] , box [ x ] out . append ( chr ( ord ( char ) ^ box [ ( box [ x ] + box [ y ] ) & 0xff ] ) ) return '' . join ( out )