code: def _encryptChar(plain, R):
      plain = byteord(plain)
      cipher = ((plain ^ (R >> 8))) & 0xFF
      R = ((cipher + R) * 52845 + 22719) & 0xFFFF
      return bytechr(cipher), R
  
imports: from fontTools.misc.textTools import bytechr, bytesjoin, byteord
label_desc: Use image node_id 2 for calling a global function with example usage: _encryptChar(plain, R) and returns: bytechr,  R