Given table is the ascii value of the characters and symbols. The following code is the code for XOR Encryption: Change the input string in the driver code at the sample string. def encrypt(inpString): xorKey = 'e'

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Given table is the ascii value of the characters and symbols. The following code is the code for XOR Encryption: Change the input string in the driver code at the sample string. def encrypt(inpString): xorKey = 'e'

 

 

  1. Which of the following is the message HELLO TUTOR after xor encryption, using 'e' as the key, has been applied?
  1. - ))*E101*7  
  2. -$55<E'H!$< 
  3. =$(E7 3,6  
  4. - ),"*)$+!6 




  1. Which of the following is the message HELIGOLANDS after xor encryption, using 'e' as the key, has been applied?
  1. - )5E( E5)6 
  2. - ),"*)$+!6  
  3. - ))*E207)< 
  4. - ))*E2*7)! 




  1. Which of the following is the original message before xor encryption, using 'e' as the key, created - ),"*)$+!6?
  1. HELP ME PLS 
  2. HELIGOLANDS  
  3. HELLO WURLY 
  4. HELLO WORLD 
XOR Encryption
The ASCII character set...
Dec Hex Name
Char Ctrl-char Dec Hex Char Dec Hex Char Dec Hex Char
20 Space 64
Null
NUL CTRL-O
40 O
96 60
32
21
34
1
Start of heading
SOH CTRL-A
33
65
41
A
97
61
2
2
66
67
68
69
70
71
72
73
74
75
98
22
35
Start of text
STX CTRL-B
42
62
b
3
End of text
ETX CTRL-C
23
43
99
63
4
End of xmit
EOT CTRL-D
36
24
44 D
100 64
d.
5
Acknowledge
Bell
5
Enquiry
ENQ CTRL-E
37
25
%
45
101 65
102 66
G
ACK CTRL-F
38
26
&
46
f
7
8
39
103 67
104 68
105 69
106 6A j
107 6B
BEL CTRL-G
27
47
8
9
10
40
Backspace
Horizontal tab
BS
CTRL-H
CTRL-I
28
48
HT
41
29 )
49
DA Line feed
11
42
CTRL-J
CTRL-K
LF
2A
4A J
OB Vertical tab
12 oC Form feed
13 00 Carriage feed
14 DE Shift out
15 OF Shift in
43
44
VT
28
4B
K
k
FF
CTRL-L
20
76
4C
108 6C
109 6D
110 6E
111 6F
112 70
113 71
L
CR
CTRL-M
45
20
77
4D M
so CTRL-N
46
47
2E
78
4E N
SI
79
2F
48
49
CTRL-O
4F
80
51
16
10 Data line escape
DLE CTRL-P
30
50
p
17 11 Device control 1
18 12 Device control 2
Dci CTRL-Q
50
81
82
53 S
31
1
DC2 CTRL-R
32
2
33
3
52 R
114 72
19 13 Device control 3 DC3 CTRL-S
51
83
84
115 73
20
21
DC4 CTRL-T
14 Device control 4
52
34
4
54 T
116 74
t
15 Neg acknowledge NAK CTRL-U
53
35
5
85
55
117 75
54
86
22 16 Synchronous idle s YN CTRL-V
118 76
119 77
36
6
56
17 End of xmit block ETB CTRL-W
7.
23
24
25 19 End of medium
26
87
88
89
90
55
37
57
56
57
58
18 Cancel
CAN CTRL-X
38
8
58
120 78
EM
CTRL-Y
39
9
59
Y
121 79
1A Substitute
SUB CTRL-Z
SA Z
91 5B (
92 SC \
93 5D ]
122 7A
123 7B
124 7C I
125 7D
126 7E
127 7F
ЗА
27
18 Escape
ESC CTRL-I
59
38
28 10 File separator
29
FS CTRL-\
60
30
61
10 Group separator
30 1E Record separator
31 1F Unit separator
GS
CTRL-)
3D
RS
CTRLA
62
3E
94
SE A
>
2.
US
CTRL-
63 3F
95 SF
DEL
This scenario is used by questions 11 to 13.
NY-
R刀为为
O123 456 789
Transcribed Image Text:XOR Encryption The ASCII character set... Dec Hex Name Char Ctrl-char Dec Hex Char Dec Hex Char Dec Hex Char 20 Space 64 Null NUL CTRL-O 40 O 96 60 32 21 34 1 Start of heading SOH CTRL-A 33 65 41 A 97 61 2 2 66 67 68 69 70 71 72 73 74 75 98 22 35 Start of text STX CTRL-B 42 62 b 3 End of text ETX CTRL-C 23 43 99 63 4 End of xmit EOT CTRL-D 36 24 44 D 100 64 d. 5 Acknowledge Bell 5 Enquiry ENQ CTRL-E 37 25 % 45 101 65 102 66 G ACK CTRL-F 38 26 & 46 f 7 8 39 103 67 104 68 105 69 106 6A j 107 6B BEL CTRL-G 27 47 8 9 10 40 Backspace Horizontal tab BS CTRL-H CTRL-I 28 48 HT 41 29 ) 49 DA Line feed 11 42 CTRL-J CTRL-K LF 2A 4A J OB Vertical tab 12 oC Form feed 13 00 Carriage feed 14 DE Shift out 15 OF Shift in 43 44 VT 28 4B K k FF CTRL-L 20 76 4C 108 6C 109 6D 110 6E 111 6F 112 70 113 71 L CR CTRL-M 45 20 77 4D M so CTRL-N 46 47 2E 78 4E N SI 79 2F 48 49 CTRL-O 4F 80 51 16 10 Data line escape DLE CTRL-P 30 50 p 17 11 Device control 1 18 12 Device control 2 Dci CTRL-Q 50 81 82 53 S 31 1 DC2 CTRL-R 32 2 33 3 52 R 114 72 19 13 Device control 3 DC3 CTRL-S 51 83 84 115 73 20 21 DC4 CTRL-T 14 Device control 4 52 34 4 54 T 116 74 t 15 Neg acknowledge NAK CTRL-U 53 35 5 85 55 117 75 54 86 22 16 Synchronous idle s YN CTRL-V 118 76 119 77 36 6 56 17 End of xmit block ETB CTRL-W 7. 23 24 25 19 End of medium 26 87 88 89 90 55 37 57 56 57 58 18 Cancel CAN CTRL-X 38 8 58 120 78 EM CTRL-Y 39 9 59 Y 121 79 1A Substitute SUB CTRL-Z SA Z 91 5B ( 92 SC \ 93 5D ] 122 7A 123 7B 124 7C I 125 7D 126 7E 127 7F ЗА 27 18 Escape ESC CTRL-I 59 38 28 10 File separator 29 FS CTRL-\ 60 30 61 10 Group separator 30 1E Record separator 31 1F Unit separator GS CTRL-) 3D RS CTRLA 62 3E 94 SE A > 2. US CTRL- 63 3F 95 SF DEL This scenario is used by questions 11 to 13. NY- R刀为为 O123 456 789
Expert Solution
steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY