Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Programming #3: Secret Key Encryption In symmetric encryption, only one key is used for encryption and decryption. This key is called the secret key .

Programming #3: Secret Key Encryption

In symmetric encryption, only one key is used for encryption and decryption. This key is called the secret key. In this programming assignment, you are asked to decrypt the message given in the secret.txt file using the secret key passed as an argument to the program and generate an output file, called message.txt with the decrypted message. In this programming assignment, you are asked to write a Java program, called SecretKeyApp, which will read the encrypted text from a file and decrypt the text using the secret key. The program will input the file name and the secret key as a command line argument as shown in the following sample console(terminal) run:

$ java SecretKeyApp secret.txt 0x1668AC1F

TODO

Write a Java application that reads encrypted messages given in the secret.txt input file, and decrypts the message with the given secret key, 0x1668AC1F. The program then writes the decrypted message into an output file, message.txt.

Notes:

- You are not allowed to use external libraries in the implementation.

- You are supposed to use bitwise operations while decrypting the message

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases Theory And Applications 27th Australasian Database Conference Adc 20 Sydney Nsw September 28 29 20 Proceedings Lncs 9877

Authors: Muhammad Aamir Cheema ,Wenjie Zhang ,Lijun Chang

1st Edition

3319469215, 978-3319469218

More Books

Students also viewed these Databases questions

Question

Conduct a needs assessment. page 269

Answered: 1 week ago