Professional Documents
Culture Documents
wklv!" mean?
2. What does "Wub
Try this!
3. In 5i, did you use the rotate code or the try_all_25 code? How well did it go? Which code do you
think is the best? Do provide a log of your python code to prove that you found the messages
yourself.
Try_all_25 is better, because you only need to use it once. Rotate requires you to use it as many as
26 times
%cd "/Users/3058464/Desktop"
rotate("Jvgure jrag...", 1)
try_all_25("Jvgure jrag...")
%logstop
Jvgure jrag gerzraqbhf qvabfnhef! Guvaxvat gurer fubhyq rkvfg nggrzcgrq uvynevgl urer?
Wither went tremendous dinosaurs! Thinking there should exist attempted hilarity
here?
5. Do the part 2 Public Key activities, filling in the appropriate fields in the shared google doc (part of
your grade will come from the google doc results). Provide a python log of you utilizing the keys to
decode messages.
%cd "/Users/3058464/Desktop"
rotate("Jvgure jrag...", 1)
try_all_25("Jvgure jrag...")
try_all_25("Jvgure jrag...")
try_all_25("Jvgure jrag...")
rotate("Jvgure jrag...",2)
rotate("Jvgure jrag...",2)
try_all_25("Jvgure jrag...")
try_all_25("Jvgure jrag...")
%logstop
print public_key
# Sun, 29 Jan 2017 18:23:06
print private_key
encrypted_message = use_key(public_key, "phils from the stone jacks from the pier horatio horat so
beer")
message
#[Out]#
'8678-7982-8906-7688-8583-0690-7875-0689-9085-8475-0680-7173-8189-0676-8885-8306-9078-7
506-8679-7588'
ab="3982-8206-4575-8480-7906-8682-7195-7588-8906-7188-7506-7475-7174-0690-8506-8375"
decrypted_message
#[Out]#
'67404-50373-12712-46424-72083-61712-30357-12677-61354-35072-52986-40988-74978-2114-54
497-67691'
plain_message = denumerize(decrypted_message)plain_message
plain_message = denumerize(decrypted_message)
denumerize(67404-50373-12712-46424-72083-61712-30357-12677-61354-35072-52986-40988-74
978-2114-54497-67691)
authenticated_message
="3982-8206-4575-8480-7906-8682-7195-7588-8906-7188-7506-7475-7174-0690-8506-8375"
use_key(jons_public_key, authenticated_message)
#[Out]#
'67404-50373-12712-46424-72083-61712-30357-12677-61354-35072-52986-40988-74978-2114-54
497-67691'
plain_message = denumerize(_)
encrypted_message
#[Out]#
'0462-11726-10454-9331-12338-0421-5619-0535-1963-0551-6070-1503-7638-4457-13221-13451-1
2497-13414-9719-10631'
encrypted_message
#[Out]#
'7852-3095-1991-23155-15104-8224-4013-12532-9333-11069-17316-24106-21801-4341-19132-18
878-11069-15357-6311-19364-20249-16791'
message
#[Out]#
'0679-0671-8306-7184-7788-9506-7190-0684-7585-0672-7573-7191-8975-0678-7506-7989-0672-9
182-8295-7984-7706-8375'
message
#[Out]#
'0679-0671-8306-7184-7788-9506-7190-0684-7585-0672-7573-7191-8975-0678-7506-7989-0672-9
182-8295-7984-7706-8375'
decrypted_message =
use_key(private_key,3982-8206-4575-8480-7906-8682-7195-7588-8906-7188-7506-7475-7174-069
0-8506-8375)
decrypted_message =
use_key(private_key,'3982-8206-4575-8480-7906-8682-7195-7588-8906-7188-7506-7475-7174-069
0-8506-8375')
denumerize(decrypted_message
decrypted_message
#[Out]#
'8008-11552-2401-17740-5588-11492-13114-21565-4630-1621-19132-10764-20813-7958-22507-1
6791'
encrypted_message
#[Out]#
'7852-3095-1991-23155-15104-8224-4013-12532-9333-11069-17316-24106-21801-4341-19132-18
878-11069-15357-6311-19364-20249-16791'
decrypted_message =
use_key(private_key,'3982-8206-4575-8480-7906-8682-7195-7588-8906-7188-7506-7475-7174-069
0-8506-8375')
decrypted_message
#[Out]#
'8008-11552-2401-17740-5588-11492-13114-21565-4630-1621-19132-10764-20813-7958-22507-1
6791'
denumerize(decrypted_message)
denumerize(8008-11552-2401-17740-5588-11492-13114-21565-4630-1621-19132-10764-20813-79
58-22507-16791)
denumerize('8008-11552-2401-17740-5588-11492-13114-21565-4630-1621-19132-10764-20813-79
58-22507-16791')
decrypted_message =
use_key(private_key,'3982-8206-4575-8480-7906-8682-7195-7588-8906-7188-7506-7475-7174-069
0-8506-8375')
denumerize(decrypted_message)
# Wed, 01 Feb 2017 10:21:36
plain_mess=decrypted_message
denumerize(plain_mess)
denumerize(3982-8206-4575-8480-7906-8682-7195-7588-8906-7188-7506-7475-7174-0690-8506-8
375)
denumerize('3982-8206-4575-8480-7906-8682-7195-7588-8906-7188-7506-7475-7174-0690-8506-
8375')
6. (conclusion question #1). Explain the relationship among the following concepts.