You are on page 1of 9

GMI German-Malaysian Institute

DIPLOMA PROGRAMME

PRACTICAL TEST 2 [15%]


Academic Period : JULY 2023

Subject : CRYPTOGRAPHY
Code : CBS 2373
Duration : 3 HOURS
Total Marks : 50 MARKS

GENERAL INSTRUCTIONS:

1. Write down clearly (with capital letters) your name, trade, group and the date
of examination at the bottom of this page.
2. Do not open this question booklet until you are told to do so by the invigilator.
3. Read the specific instructions and questions carefully before answering.

Student’s Name : MUHAMMAD FAIZUN NAZIM BIN MD FAUZAN


Student’s I/D No. : NWS21070675
Semester/Trade/Group : DNWS2 SEM5
Date : 31/10/2023
CBS 2373 CRYPTOGRAPHY

Level
Full
No Assessment Criteria CLO PO of Score Marks Comment
Marks
Diff
1. To generate message digest 2 4 P3 10
(MD)
2. To generate key for RSA 2 4 P3 15
public key and private key.
3. To achieve authentication and 2 4 P3 25
integrity by using digital
signature in combination with
message digest and RSA.

Total 50
Total Marks /50
Total PO4 /50

Signature

Learning Objectives:

1. To generate message digest (MD)


2. To generate key for RSA public key and private key.
3. To achieve authentication and integrity by using digital signature in combination with
message digest and RSA.

To do this practical test, you should open the microsoft Excel and start to follow the question
given. This tasks are based on the message digest, public key & private key of RSA, and
digital signature.

You are required to submit the answer in word document to PDF FORMAT and EXCEL
FILE with mod calculation.

All answers are based on the Excel solution given.

Page 2 of 9

Copyright of German-Malaysian Institute. All rights reserved.


CBS 2373 CRYPTOGRAPHY

Tasks
Questions Mark
s

Page 3 of 9

Copyright of German-Malaysian Institute. All rights reserved.


CBS 2373 CRYPTOGRAPHY

To generate QUESTION 1: 10
message You are required to calculate the message digest (MD) based on the message given and
digest (MD) to use SD11 idea to generate the MD.

You are required to convert each characters of message according to the ASCII table
below.

Message:
Cryptographic_Protocol

Answer Mark
Message 5
Cryptographic_Protocol
digest (MD)

Screen shot the Excel result: Mark = 5

Page 4 of 9

Copyright of German-Malaysian Institute. All rights reserved.


CBS 2373 CRYPTOGRAPHY

Page 5 of 9

Copyright of German-Malaysian Institute. All rights reserved.


CBS 2373 CRYPTOGRAPHY

To generate QUESTION 2: 15
key for RSA You are required to generate key of RSA based on the prime number given by Lecture.
public key
and private
Write down the prime number into the table below.
key.
Give the n and phi(n) answer into the table below.
Give the public key and private key answer into the table below.

Prime number Marks


(Given by Lecture)
p 5 1
q 11 1

Answer Marks
n 55 2
phi (n) 40 2
public 2
3,55
key
private 2
27,55
key

Screen shot the Excel result: Marks = 5

Page 6 of 9

Copyright of German-Malaysian Institute. All rights reserved.


CBS 2373 CRYPTOGRAPHY

Page 7 of 9

Copyright of German-Malaysian Institute. All rights reserved.


CBS 2373 CRYPTOGRAPHY

To achieve QUESTION 3: 25
authenticatio You are required to achieve the authentication and integrity by using digital signature in
n and combination with the Answer 1 and Answer 2 above which are in combination between
integrity by MD and RSA.
using digital
signature in The answer of question 3 is based on the question 1 and 2 above.
combination
The Alice and Bob as the names of characters for completion the authentication and
with message
integrity.
digest (MD)
and RSA.
Write down the answer into the table below.

Alice Marks Bob Marks


Public 2 Public key 3,55 2
key 3,55 (Alice)
(Alice)
Private 2 Message Cryptographic_Pr 2
key 27,55 (Alice) otocol
(Alice)
2 Digital 10 2
Message Cryptographic_Pro
Signature
(Alice) tocol
(Alice)
2 MD 10 2
MD
10 (Digital
(Alice)
Signature)
Digital 2 MD 10 2
Signature 10 (Alice)
(Alice)

Screen shot the Excel result: Marks = 5

Page 8 of 9

Copyright of German-Malaysian Institute. All rights reserved.


CBS 2373 CRYPTOGRAPHY

Page 9 of 9

Copyright of German-Malaysian Institute. All rights reserved.

You might also like