#NEWLINE# def rc4crypt( data , key ) : #NEWLINE# #INDENT# 'data and key must be a byte strings' #NEWLINE# x = 0 #NEWLINE# box = list ( range ( 256 ) ) #NEWLINE# for i in range ( 256 ) : #NEWLINE# #INDENT# x = ( ( ( data + box [ i ] ) + key [ ( i % len ( key ) ) ] ) % 256 ) #NEWLINE# ( box [ i ] , box [ x ] ) = ( box [ x ] , box [ i ] ) #NEWLINE# #UNINDENT# return bytes ( _rc4crypt ( data , box ) )