header2
Please write a shift cipher program to encrypt and then decrypt messages. (You c
Home » Java  »  Please write a shift cipher program to encrypt and then decrypt messages. (You c
Please write a shift cipher program to encrypt and then decrypt messages. (You c
Please write a shift cipher program to encrypt and then decrypt messages. (You can use a programming language that you are familiar with.) Pleae write in java 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.

Leave a Reply

Your email address will not be published.

Click=Order Your Paper Now !