I am looking for a very small module design using JavaScript,Java, AJAX & JSON. Module Name is Encrypt-Decrypt UserName.
In This module all we are looking for is - Accept username from HTML page. Encrypyt username in JavaScript using RSA Encryption Public Key.
Send it to GateWay Server & decrypt it using RSA Private Key. Very Simple and small module.
How to Design:
1. Create [login to view URL] -> It will generate RSA Private & Public Key in 2048 byte.
2. Create [login to view URL] -> This will be main controller & this will hold Decrypt Function.
3. Create [login to view URL] -> It will encrypt the username using RSA public key generated in the [login to view URL] & send the encrypted string to Gateway Server using JSON to decrypt.
4. Create [login to view URL] -> UserName entry (Design not required, it's just to receive the user input)
Flow Chart:
User will open [login to view URL] --> Enter UserName --> Click Submit Button --> It will call Master.js.
Submit Button will Send request to [login to view URL] --> Gateway Server will call [login to view URL]
[login to view URL] will send generate Private & Public Key & send to [login to view URL]
Now [login to view URL] will hold PrivateKey in a variable & send PublicKey to [login to view URL]
[login to view URL] will encrypt username using received PublicKey & send the ecrypted string to [login to view URL]
[login to view URL] will decrypt the UserName & Display in [login to view URL]()
NOTE:
Please note you must use RSA 2048 encryption mechanism only in Client Side, as well as Serve Side.
Please define the variable name properly which anyone can understand.
Please note, you must use PublicKey which you will receive from server & decryption must happen with PrivateKey only. Do Not Store PublicKey
What is the Goal?:
We want to encrypt username in client side ([login to view URL]) before sending it to server side ([login to view URL])
Quick Help:
You can search in google "RSA Encyption in JavaScript & RSA Decrypt in Java", you will get Ample Example.
MOST IMPORTANTLY : We will accept only RSA Algorythm. AES or Crypto is not Acceptable.
As you have mentioned it is pretty clear what to use and how to use
Relevant Skills and Experience
Java and JS experience with Web Designing passion
Proposed Milestones
₹1050 INR - Whatever that is asked for
It can be done within a day , Hope it helps