mirror of
https://github.com/RustySamovar/RustySamovar.git
synced 2024-11-24 19:27:35 +00:00
10 lines
181 B
Python
10 lines
181 B
Python
|
#!/usr/bin/env python3
|
||
|
|
||
|
import sys
|
||
|
|
||
|
filename = sys.argv[1]
|
||
|
key = int(sys.argv[2], 16)
|
||
|
|
||
|
data = open(filename, "rb").read()
|
||
|
open(filename, "wb").write(bytes([i ^ key for i in data]))
|