The little things give you away... A collection of various small helper stuff
Nie możesz wybrać więcej, niż 25 tematów
Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
|
- #!/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()))
|