A simple Python script to find the key used in a XOR cipher. With a cleartext message and its XOR encrypted message, you can use this tool to find the key used to encode the messages. This can allow you to break future messages using the same XOR cipher key as well as encrypt your own messages with the same method.
1. Ensure you have files containing the cleartext and encrypted message. Ensure files have only the parts of cipher, and no extra newlines, etc.
This script is for educational purposes only. The author, Yoji Watanabe, is not responsible for the use of this script, repository, or any information contained inside it. Any action the user takes with this script (or any information) in it is solely the user’s responsibility. Use at your own risk.