commit a6339e4a62490d0ca5e2da2d3dd55e9874f59452 parent d266fe16366204c7f57e0bf85929ed6c480cdaef Author: mpizzzle <michael770211@gmail.com> Date: Fri, 6 Oct 2017 15:28:24 +0100 set 1 challenge 2 complete Diffstat:
| A | set1/fixed_xor.py | | | 7 | +++++++ |
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/set1/fixed_xor.py b/set1/fixed_xor.py @@ -0,0 +1,6 @@ +import sys + +key = "1c0111001f010100061a024b53535009181c" +msg = "686974207468652062756c6c277320657965" + +print ''.join([chr(ord(a) ^ ord(b)) for a, b in zip(key.decode("hex"), msg.decode("hex"))]).encode("hex")+ \ No newline at end of file