1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11:
from pygenere import * plaintext = 'Attack from dawn.' key = 'king10' ciphertext = Vigenere(plaintext).encipher(key) print "Actual text as followed. " + plaintext print "Encrypted test using key word: king10 as followed. " + ciphertext print "Decrypted text as followed. " + Vigenere(ciphertext).decipher(key) print "Using VigCrack to display keyword: " + VigCrack(ciphertext).crack_codeword() print "Showing the actual message: " + VigCrack(ciphertext).crack_message()