We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 850cf16 commit bebb2a1Copy full SHA for bebb2a1
pynuodb/crypt.py
@@ -280,6 +280,14 @@ def __init__(self, key):
280
state[i], state[j] = state[j], state[i]
281
282
def transform(self, data):
283
+ """
284
+ Preforms a byte by byte RC4 transform on the stream
285
+ Python 2:
286
+ automatically handles encoding bytes into an extended ASCII encoding [0,255] w/ 1 byte per character
287
+ Python 3:
288
+ bytes objects must be converted into extended ASCII, latin-1 uses the desired range of [0,255]
289
+ For unicode strings (characters consisting of more than 1 byte) the values are broken into 1 byte sections and shifted
290
291
transformed = []
292
state = self.__state
293
if type(data) is bytes:
0 commit comments