How can I crack two ciphertexts that have used the same key twice? For example, plaintext1
uses the key "abcdefg"
, and plaintext2
uses the key "abcdefg"
.
I know that ciphertext2 ^ ciphertext1
is equal to plaintext1 ^ plaintext2
. And the method to crack plaintext1 ^ plaintext2
is the same method to crack a "book cipher" (also sometimes called a "running key cipher", although a running key cipher isn't the same as a book cipher, right?)
I know that I'm supposed to use a dictionary attack, but I'm not sure which dictionary/wordlist I should use, and the algorithm used in cracking this. Can anyone provide me with a link, or some code that shows how to crack it?
I'm new to cryptography, and I just wanted to do this for fun. Can anyone help me out? Thanks.