cryptopals/05.py

10 lines
269 B
Python
Raw Permalink Normal View History

2025-04-26 22:37:02 -04:00
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()