Decode encrypted message and display plain-text in output.
(self, string)
| 231 | # Decrypt a string for display in the interface's output area. |
| 232 | |
| 233 | def decode(self, string): |
| 234 | "Decode encrypted message and display plain-text in output." |
| 235 | try: |
| 236 | cipher = self.extract_keys(string) |
| 237 | text = self.extract_text(cipher) |
| 238 | except ValueError: |
| 239 | self.output = '' |
| 240 | except: |
| 241 | self.output = traceback.format_exc() |
| 242 | else: |
| 243 | self.output = text |
| 244 | |
| 245 | def extract_keys(self, string): |
| 246 | "Extract keys to decryption and return the cipher-text area." |
no test coverage detected