Lines Matching refs:cipher
8 def _decryptChar(cipher, R): argument
9 cipher = byteord(cipher)
10 plain = ( (cipher ^ (R>>8)) ) & 0xFF
11 R = ( (cipher + R) * 52845 + 22719 ) & 0xFFFF
16 cipher = ( (plain ^ (R>>8)) ) & 0xFF
17 R = ( (cipher + R) * 52845 + 22719 ) & 0xFFFF
18 return bytechr(cipher), R
31 for cipher in cipherstring:
32 plain, R = _decryptChar(cipher, R)
48 cipher, R = _encryptChar(plain, R)
49 cipherList.append(cipher)