cryptopals/05.py

9 lines
269 B
Python

import helper, cryptlib
def main():
string_content = helper.read_file("data/05.txt").strip()
ciphertext = cryptlib.repeating_xor(string_content)
print(f"Plaintext:\n{string_content}\n\nCiphertext:\n{ciphertext}")
if __name__ == '__main__':
main()