Generate RSA activation code for machine code on the web page?
-
I want to let users provide the machine code on the web page. The server backend uses the private key generated by HISE to generate an activation code for the machine code. After the user gets the activation code, he fills it in the plug-in to activate it.
But I don't know the RSA key signing logic of HISE. Can anyone help me?
This is the implementation steps I thought of:
1.Generate RSA key file in HISE and obtain PublicKey and PrivateKey
2.Put the PublicKey in the plugin
3.Put the PrivateKey on the server backend,
4.After the user logs in, fill in the machine code input box in the account
5.Click Submit Activation, the server uses PrivateKey to sign the machine code and generate an activation code
6.Fill in the activation code obtained into the activation code input box of the plug-in
7.The plugin uses the "FileSystem.decryptWithRSA(code, pubKey);" provided by HISE to verify the activation code
-
@CatABC this looks about right....