File: nscriptenc.py

package info (click to toggle)
onscripter 20181218-1
  • links: PTS
  • area: main
  • in suites: buster
  • size: 1,332 kB
  • sloc: cpp: 31,363; makefile: 84; sh: 36; python: 10
file content (14 lines) | stat: -rwxr-xr-x 223 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env python3

import sys

while True:
    try:
        s = sys.stdin.buffer.read(1)
    except:
        break
    if (len(s) == 0):
        break
    
    e1 = bytes([ord(s)^0x84])
    sys.stdout.buffer.write(e1)