-
|
Hi I am on a project to receive an ECDH pubkey from backend in order to encrypt messages so that only the true backend can decrypted, for I have to use a proxy site to pass clients' message to my actual server. I have checked pages like https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/generateKey & /importKey & /exportKey &etc. First thing first, generate a public key: I do not know why the Then there is a DOM Exception: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Correct: https://w3c.github.io/webcrypto/#algorithm-overview |
Beta Was this translation helpful? Give feedback.
-
|
Even though encryption with ECC is not directly possible, you can take the PGP approach. I'm not gonna go into detail as I'm no expert on the matter, but basically you use an ephemeral key and ECDH with a KDF to derive a key. |
Beta Was this translation helpful? Give feedback.
Correct: https://w3c.github.io/webcrypto/#algorithm-overview