I’m trying to come up with an interopable crypto algorithm (by interopable
I mean the ability to sign/encrypt data in c#
using keys generated by JS
and vice-versa).
I took ECDSA
as a base as it looked modern and well-documented, I also saw sample keyUsage values, implying the encryption support (which I believe works quite well in JS
).
I was able to sign/verify signatures in c#
using JS
generated keys, but c#
ECSDA class doesn’t seem to support encryption. Is this WIP on MS behalf or we should stick to RSA
for encryption (As this answer suggests)?