This website works better with JavaScript.
Home
Explore
Help
Sign In
JustAnotherArchivist
/
little-things
Watch
2
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Add cloudflare-email-decode
master
JustAnotherArchivist
2 years ago
parent
73f35f5591
commit
e2085e6c81
1 changed files
with
16 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+16
-0
cloudflare-email-decode
+ 16
- 0
cloudflare-email-decode
View File
@@ -0,0 +1,16 @@
#!/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()))
Write
Preview
Loading…
Cancel
Save