Classical Cryptography‐Shift Cipher

Words: 346
Pages: 2
Subject: Uncategorized

Please write a shift cipher program to encrypt and then decrypt messages. (You can use a programming language that you are familiar with.)
Your program should have the following two functions(Encrypt and Decrypt functions):
Part I: Encryption function
Allow users to randomly input a message, for example, “I love discrete math”, “I live in New Jersey”,….
Read the message from the user’s input in step 1.
Design a shift cipher method and encrypt the user’s input message by your designed method.
Output/print the encrypted message, your output for this step should be in the form of “The user input a message XXXXXXXX, by encrypting with shift cipher, the corresponding Encrypted message is XXXXXXXX”
Part II: Decryption function (based on your designed shift cipher method, please also realize the corresponding decryption method)
Read the output encrypted message from the above step 4.
Use the corresponding decrypt function to decrypt the message.
Output/print the decrypted message. your output in this step should be in the form of “The encrypted message is XXXXXXXX, by decrypting with shift cipher, the corresponding Decrypted message is XXXXXXXX”
Requirement for submitting your project:
You should contain the following files in your submission:
Source code
Code instruction PDF file. In your code instruction, please include:
Which programming language do you use for this project.
for the encryption method, please provide the detailed encryption function (math) and briefly explain how your method works.
for decryption method, please give the corresponding decryption funtion (math) and briefly explain how your method works.
Paste your source code.
Paste your screenshot of the running results. You can encrypt “Computer Science Major” for testing.

Let Us write for you! We offer custom paper writing services Order Now.

REVIEWS


Criminology Order #: 564575

“ This is exactly what I needed . Thank you so much.”

Joanna David.


Communications and Media Order #: 564566
"Great job, completed quicker than expected. Thank you very much!"

Peggy Smith.

Art Order #: 563708
Thanks a million to the great team.

Harrison James.


"Very efficient definitely recommend this site for help getting your assignments to help"

Hannah Seven