NET 311 D Project

Transcription

NET 311 D Project
PRINCESS NORA BINT ABDULRAHMAN UNIVERSITY
College of Computer and Information Sciences
Information Security (Net 311 D)
Second Semester (1435-1436 H)
Net 311 D Project ( 10 points )
Project Description:
In groups of four students, implement the RSA algorithm in any programming language that
you are familiar with.
Your code should cover the following points:
1. Take two numbers ( p and q ) from the user and then check if the entered numbers are
prime or not
2. Calculate n
3. Calculate ф
4. Choose the value of e which should match the two conditions ( 1<e<ф and gcd(e, ф)=1)
5. Calculate d
6. Ask the user to enter the message that he/she wants to encrypt (characters only).
7. Encode the message using the following encoding table
Character
a
b
c
d
e
f
g
h
i
Code
0
1
2
3
4
5
6
7
8
Character
j
k
l
m
n
o
p
q
r
Code
9
10
11
12
13
14
15
16
17
Character
s
t
u
v
w
x
y
z
Code
18
19
20
21
22
23
24
25
8. Display the cipher text
9. Display the plain text
Submission Instructions
1. You will submit a report and it MUST include the following:
 Flow chart or any diagram that shows the process, input, and outputs.
 Screen shot of your program after test it.
 Appendix page that include the code that you write.
 You need to follow the following format in you report:
 The paper must have cover page with the topic and the names of the group
members.
TA. Anfal AlHazzaa – Networks and communication systems Dept.
PRINCESS NORA BINT ABDULRAHMAN UNIVERSITY
College of Computer and Information Sciences
Information Security (Net 311 D)
Second Semester (1435-1436 H)
 The font needs to be Times New Roman with size 12.
 Spacing line is 2.
 Use APA style for writing the references.
 Table of content should be in the beginning.
 The reference will be at the end before the appendix.
2. Submission Date: Week 13, Monday (27 Apr 2015)
3. Any late submission will decrease your points.
4. Any copy from other group will result in ZERO!
About Discussion
1. You have to be prepared to answer questions regarding your code and report
2. It will be at week 14 with your tutorial teacher (dates will be scheduled later )
Criteria for Grading the Project
#
1
2
3
4
5
6
7
8
9
10
11
12
13
1
2
3
4
1
Criteria
Point
Code
Taking q and p from the user
Checking if p and q are prime or not
Calculating n
Calculating ф
Checking if e between 1 and ф
Checking if gcd (e,ф)=1
Calculating d
Asking the user to type the message
Encoding the message
Encryption code
Decryption code
Printing cipher text
Printing plain text
Report
Cover page + table of content + references + format
Flow chart
Screen shot
Copy of the code
Discussion
Total
0.5
1
0.5
0.5
1
2
2
0.5
2
2
2
0.5
0.5
1 (0.25 point each)
5
3
1
5
30/3 = 10
Good luck ,
TA. Anfal AlHazzaa – Networks and communication systems Dept.