Write simple Java code

Using Java Cryptographic Architecture (JCA) and Java Cryptographic Extensions (JCE) implement the following protocol.

a) Two entitles (Alice and Bob) generates public key pair using RSA algorithm.

[Print: “Alice: Public Key: AAA”

“Alice: Private Key: aaa”

“Bob: Public Key: BBB”

“Bob: Private Key: bbb”

Where AAA, aaa, BBB, and bbb are the public and private key of Alice and Bob respectively.

b) Alice generates a random DES key.

[Print: “Alice: the DES key: xxx, where xxx is the DES key].

c) Then, Alice encrypts the following message “Protect your network as if it would be a hotel not as if it would be a castle.” Using the DES encryption and the DES key.

[Print: “Alice: Plain text: xxx,

DES Key: kkk

Cipher text: ccc ], where xxx is the plaintext message, kkk is the DES key and ccc

is the ciphertext.

d) Alice then digitally signs the message (notice that Alice need to use her private key and MAC

algorithm to do this).

[Print: “Alice: Digitally signed message is xxx”, where xxx is the output of digital signature on the


e) Finally, Alice encrypts the DES key using the public key of Bob. In a normal scenario, Alice would send the encrypted message, digitally signed message, and the encrypted key to Bob. However, in this scenario, you should print this information on the output screen as printable outputs. Print some newline characters to separate this segment from the following segment.

f) Bob would verify the digital signature (notice that in this case, you need to use the public key of Alice, encrypted message, and the received digital signature). If the signature is valid, then print “Bob: Message is signed by Alice!”, otherwise print “Bob: Message is not signed by Alice!”.

g) Then, Bob decrypts the DES key using his RSA private key. [Print: “Bob: the DES key is :xxxx”,

where xxx is the encrypted DES key).

h) Finally, Bob decrypts the message using DES key and prints “Bob: the message is “xxx”., where xxx is the decrypted message.

Please design the appropriate classes and methods so that the design of the program is clean and reusable. Provide a tester class with “main” method that will use these classes to complete the tasks.

Please properly comment your code.

You should submit all the necessary source code files to run the program along with a snapshot of the test run in a zip file. Please provide a “[login to view URL]” file stating how to run your program.

Please properly comment your code.

EXAMPLE OF OUTPUT: [login to view URL]

Квалификация: Java, Программирование, Security, Архитектура ПО

Показать больше simple java code, simple java code websiti response code, simple java code login, java programs examples with output, how to run java program, java codes list, java coding program, simple java programs for beginners, how to write java programs in notepad, java programs with source code, basic java programs pdf, write simple java program magtek card reader, simple java code gui mortgage calculator, hangman simple java code, simple java code gui examples, write simple java programs netbean, simple java code test scores, write small java code game, simple java code sound recorder, file write completey java code

О работодателе:
( 5 отзыв(-а, -ов) ) Florianópolis, United States

ID проекта: #19141151



hi, i have been using java for different kinds of problem. i can do yours within the budget and time limit. check out my profile for any reference or assurance. thanks in advance.

$20 CAD за 1 день
(10 отзывов(-а))

7 фрилансеров(-а) в среднем готовы выполнить эту работу за $30


Hi I'm an expert in java programming. I'm sure that I can easily do this project. We can have a about it. Thanks..

$60 CAD за 1 день
(304 отзывов(-а))

Hello, I am experienced in this field, check my profile for sure. If I take project, it will be done soon according to your requirements.

$25 CAD за 1 день
(17 отзывов(-а))

I'm software engineer and algorithm expert. of course, i am perfected in Java . I have many expericens in security. I have all skills to complete your project. Your success is my success.

$25 CAD за 1 день
(6 отзывов(-а))
$25 CAD за 1 день
(0 отзывов(-а))

Hello i have read all the description of the project and i can do that with proper documents and clean source code.

$35 CAD за 1 день
(0 отзывов(-а))

Hello, I am interested in your project, and I had read your project description. I am a professional JAVA for many years. I am waiting for your response.

$20 CAD за 1 день
(0 отзывов(-а))