The values of keys can be accessed from the dictionary in the same way we access the values of an array through their index and vice versa. The plaintext (English characters) takes the place of keys and the ciphertext (Morse code) forms the values of the corresponding keys. This method may work for a paging decoder, but I'm guessing it will be somewhat susceptible to falsing. This technique works well for pure sine waves, but when hooked to a radio receiver it has to deal with normal speaking audio when tones aren't being sent. We can save the morse code chart in a dictionary where (key-value pairs) => (English Characters-Morse Code). An example of this is method is a PIC based Morse Code Reader. Python provides a data structure called a dictionary which stores information in the form of key-value pairs which is very convenient for implementing a cipher such as a morse code.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |