File: nscriptenc.py

package info (click to toggle)
onscripter 20230825-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 1,412 kB
  • sloc: cpp: 32,593; xml: 114; sh: 105; makefile: 93; 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)