Hi,
May I ask whether there is any javascript library which can directly run on browser to perform ECC encryption using public key? I try to search the internet and can only find the library applicable for Node.js. So I wonder is there any way to implement the client side asymmetric encryption? The curve I try to use is prime256v1.
My idea is:
1. Server already generated private and public key.2. Server sends the public key to the html page.3. The html page uses the client side javascript in browser to encrypt the input string by public key.4. Pass the encrypted string to the server.5. The server then can use the private key to decrypt the encrypted string.
Thanks
LK