17 lines
388 B
Python
17 lines
388 B
Python
#!/usr/bin/env python
|
|
|
|
import os, sys
|
|
|
|
module_dir = os.path.relpath('../src/cryptopals')
|
|
sys.path.insert(0, module_dir)
|
|
|
|
import helper, cryptlib
|
|
|
|
def main():
|
|
content = helper.read_file("../data/02.txt")
|
|
hexstring_list = content.splitlines()
|
|
solution = cryptlib.byte_xor(hexstring_list[0], hexstring_list[1])
|
|
print(hex(solution)[2:])
|
|
|
|
if __name__ == '__main__':
|
|
main()
|