Replies: 2 comments
-
From what I can remember about the browser native WebCrypto API, you use asymmetric keys for signatures, and symmetric (AES) keys for encryption. You cannot encrypt data using the public key, it has to be done with AES. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
To exchange encrypted data sender need the encrytion public key, but haven't found a way to export public key only with works to encrypt data?
Looks like
WebCrypto.encrypt()
uses the full priv + pub pair ?If I exportKey (is it public only?!) encrypt data fails
Why encryption needs the full key pair with priv and pub? Encryption should work with public key part only, right?
Priv + Pub works:
No problems with signing. Use keypairs private key to sign data and just the public key to verify
Beta Was this translation helpful? Give feedback.
All reactions