The little things give you away... A collection of various small helper stuff
Nelze vybrat více než 25 témat
Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
|
- #!/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()))
|