My idea is:
- Server already generated private and public key.
- Server sends the public key to the html page.
- Pass the encrypted string to the server.
- The server then can use the private key to decrypt the encrypted string.