The little things give you away... A collection of various small helper stuff
25개 이상의 토픽을 선택하실 수 없습니다.
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
12345678910111213141516 |
- #!/usr/bin/env python3
- import sys
-
-
- def decode(s):
- s = bytes.fromhex(s)
- return ''.join(chr(i ^ s[0]) for i in s[1:])
-
-
- if len(sys.argv) > 1:
- it = sys.argv[1:]
- else:
- it = sys.stdin
-
- for s in it:
- print(decode(s.strip()))
|