cryptopals/tests/01.py

18 lines
330 B
Python
Raw Normal View History

2025-04-25 20:32:42 -04:00
#!/usr/bin/env python
2025-04-26 00:00:45 -04:00
import os, sys
module_dir = os.path.relpath('../src/cryptopals')
sys.path.insert(0, module_dir)
import helper, cryptlib
2025-04-25 20:32:42 -04:00
def main():
2025-04-26 00:00:45 -04:00
hex_string = helper.read_file("../data/01.txt")
solution = cryptlib.hex_to_base64(hex_string)
print(solution.decode())
2025-04-25 20:32:42 -04:00
if __name__ == '__main__':
main()