Both the websites discuss manual command prompt key generation on an operating system. I want a mechanism where I can :
- Generate keypair on the device.
- Generate Json Web Key.
- Sign/Hash the data using private key. Below is a reference in .net/Java(I want this in cordova)
signature = RSA256SignData(ASCIIBytes(data to be signed), rsaPrivateKey)
Encoded Signature = Base64Encode(signature)
I couldn’t find any cordova plugin which can handle this. If there is no cordova plugin I’ll be glad if anyone can tell me to do this in pieces or anything which is native.