Question: Consider a third party security provider William. He receives the key from John and encrypts the key and displays it. Create a class Thirdparty with
Consider a third party security provider William. He receives the key from John and encrypts the key and displays it. Create a class "Thirdparty with two methods "Askkey" and "Replykey" to perform this. Create two threads William and John using Runnable Interface. Implement inter thread communication for the scenario and exchange the key and print the encrypted key. William encrypts the key by replacing every character with fifth character from it in alphabets John: BlackRose William: GafhpWtxj
John: Corono William Htwtst
John: Freefire William:Kwijknw)
John: Christmas William:Hmwnxyrfx
Write a Java Program
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
