Вы находитесь на странице: 1из 5

Republic of the Philippines

UNIVERSITY OF NORTHERN PHILIPPINES


Tamag, Vigan City
2700 Ilocos Sur

College of Communication and Information Technology


Website: www.unp.edu.ph

Encryption and Decryption of Message

A Final Project presented to



Mr. June Leonel Ngayaan

In Partial Fulfillment
of the Requirements for the course


CC103 INTERMEDIATE PROGRAMMING
2nd Term, School Year 2018-2019

Salazar, Yvonne Kyla S.


Quema, Sheneille L.
Bilgera, Cyrille P.

Bachelor of Science in Information Technology


1A

May 2019
INTRODUCTION

Create a program that encrypts and decrypts a message following your own algorithm. In
your document, discuss your algorithm in detail.

ALGORITHM
1. Start
2. Read A for encryption, B for decryption and C for stop.
• If the user chose A, the user will enter a message he/she wants to encrypt.
• If the user chose B, the user will enter a message he/she wants to decrypt.

A=1 P=^ 5=ƒ


B=2 Q=& 6=©
C=3 R=* 7=˙
D=4 S=( 8=œ
E=5 T=) 9=∆
F=6 U=+ .=˚
G=7 V={ ,=¬
H=8 W=}
I=9 X=[
J=~ Y=]
K=! Z=|
L=@ 1=∫
M=# 2=ç
N=$ 3=∂
O=% 4=Ω

3. Enter C if the user wishes to end or stop.


4. Display
SAMPLE OUTPUT

Fig. 1. Once the program ran, the user will choose an action by entering A for Encryption, B for
Decryption or C for Stop. In this sample output, A is the chosen action.

Fig. 2. The user entered a message he/she want to encrypt. The message is “Programming 2 is
harder than Programming 1, I love programming.”
Fig. 3. The message is already encrypted; the program will ask again for an action. B is the chosen
action.

Fig. 4. The entered message is


“^*%7*1##9$7_ç_9(_81*45*_)81$_^*%7*1##9$7_∫¬_9_@%{5_^*%7*1##9$7˚”.
Fig.5. The message is decrypted with the message “Programming 2 is harder that Programming 1,
I love programming.” The program asked an action again and the user entered C to stop or
end the program.

Вам также может понравиться