Editing
Final Report/Thesis 2015
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=====One-Time Pad Example===== Figure 27 contains an excerpt form the ''Rubaiyat of Omar Khayyam'' and the word AWAKE is the first word in the ''Rubaiyat''. Assuming we have the encoded message AFM and we want to use the second letter position to decode it. The program will search the ''Rubaiyat'' from beginning to end, until it finds the first word that begins with A. From Figure 27, the word should be AWAKE. This will then be decoded to the second letter in the same word which is W. The program will repeat step 2 for the rest of the letters in the code. The second word and third word should be FOR and MORNING based on the ''Rubaiyat of Omar Khayyam''. The output should be WOO. Figure 28 shows the output from MATLAB, the function called multi, which shows all possible decoded messages according to letter position n. For example, if n equals 2, the output will display the first original encoded message AFM and the second decoded message WOO as well. {|style="margin: 0 auto;" | [[File: Example_of_task3_1.png |thumb|1000px|centre|'''Fig. 27:''' Example of Task 3 (Rubaiyat Excerpt)]] | [[File: Example_of_task3_2.png |thumb|1000px|centre|'''Fig. 28:''' Example of Task 3 (MATLAB Output)]] |}
Summary:
Please note that all contributions to Derek may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Derek:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information