How to use RSA License
-
How to use RSA License ? Is there a minimal snippet ? RSA threads I was looking for doesn't have the example code how to implement it in real project.
How to use Demo License too ?
-
-
@Lindon I got your thread where you wrote ..
create a key-pair using HISE... Tools>License Management> Create RSA Key PairBuild an off-line system that takes a set of verifiable strings and encrypts each of them with the private key to create the serials:
FileSystem.encryptWithRSA( String dataToEncrypt, String privateKey)
get your system to save these serials in a text file so you can send a serial to each customer - so you back end system keeps a record of the user, email and issued serial.
Add a dialog to your plugin that gets a serial from the user...
use the HISE command to decrypt the entered serial using the public key
FileSystem.decryptWithRSA( String dataToDecrypt, String publicKey)
I didn't understand how to implement
FileSystem.encryptWithRSA( String dataToEncrypt, String privateKey)
&
FileSystem.decryptWithRSA( String dataToDecrypt, String publicKey)
I will post a snippet what I want to achieve.
-
HiseSnippet 1060.3ocyV0taaaCEkJIJn1acXEXO.F8Wt.YAhRh5CLrMm33LXrlTu5thMTDzQRQESDYRAIpzZLDf9Hu2fMRYqXkF2tBiUfo+c+3Pd3k26gZRgjxJKkE.qNuXQNCX8k1SWHTyFNCyEfwm.rrse9zi.GuHGWVxR.VV69SlPVc1CT+8W+3w3LrfxV6B.dojSYOkOmqV6cxfelmkcJNg8B97VY6OXLUJFJyjUZZrqsCHGSuBeI6brIscrAV6OJgqjESUXEqDXs2wxjESmIeiXY9ujWxIYLiADLUuPKcepLKwvXiWvvY7rjIMG2RfdUlr9vu6xC+2XeFOgeq+0EgutNPu0HZWOr14tza26POXa54zhdafRVsnzdKozirmRK34p0QL74KrGKTrhTrtr2lJKyEryfcsGJ0YHTGNGeE6zBswsH5643bPOWGmm7cc6pK8kpdWiK5cDUwuVeB5888ZvdISMTNOWJzF8ebSBOViaMr7hFTuJHz4.Bx0ONjfS8I9IowwPJLfhYAHjCBFhPtPXDMjDGFiIQQgNQ9NTTTDJL1wOEE4gcg9gNdXDjFhSn9wNtr.WeBl35fPwIHOTTZDB5ESChiPDnSZXPPferOxGcPWpK1KlDvPjfvHlWRpWBNHAQhb8SzzJvOMv0E5hnINPFAQiR7iBwnHL0yKlknoCB5SYQPOOXLRaFl3EPCgtdAADFh4CY9jThWLLxE464EnwPwtwNwzjnXB7hlRSdEIiSMUEH7f+GvJtHiKX8RqD5aQonmTzbcZtrKjY8oM2zGnuWypXOo6e1sCOs+JiNZqNc6bS2azcM+aMHGVZBTutCwYYD8.c+6si51nVz4boh8LQ+5cs6Mc689gRS2XrUqUFqXigMRMEeLf8EUyIrh1mYSh54u6NTa+gGpaq4PWVXZknTLVvUOKmI9PJQfUUSi.vJVoSUUO9+UqF+OtRojB.WOk20toNBp4bacWvuN9DrB2rR5EUuQ4rBE2bFrNgcsVWdovRG6SXkWoj4ZI1auCAVOX499vU66SwDVV81p8vJ33rwh7JE3ss0uWbqw69kAugmnlcqiA4Clw3WNq06.mLPwdqpVXmbYirem8u3Bxn53sHy9eJEgVT42aQkA+w6Qk28p6QkeX.39JtZsdYRUFVc2G.Lu5sJftA5NptFkUQIWsn8qh+m8pvmJEej8DthNaybbmMvQcWxmCNt5szGZOJMkQUqI3d1m9aedd3D7bYkhKt7Lrpfq6GrOuZ9TceEko2cgfkYFfs1wzbsz1wXap.SYhjZi+V+sJHzXasJHrIHXNlVHeMc4.p405GT6QyIQ8Opzw9LicOXyXossygNf45eb30Tp43+s5o+MiwcKv3sEX72BLns.SvVfIbKvD8QwX9msipTx4KGGzNlLpVdzxZj.q6rp6BA+CFK17iC
What's next ?
-
RSA Text Example
<?xml version="1.0" encoding="UTF-8"?> <KeyPair> <PublicKey value="11,c2a39b6e5b678e3df3da6d5b824d97b64f622125cd01eb5c8d487a58ac339ed084514ce81331950847d36c712366be5e41e4bfb3918254336ed0ca2909cd89b1"/> <PrivateKey value="670b52497baf4b4df991c16cae6550517552118c7b979ab8870840c58857904f583a214703a51c7adc4902e624bab20559d5358f85139c6985b10f7666494545,c2a39b6e5b678e3df3da6d5b824d97b64f622125cd01eb5c8d487a58ac339ed084514ce81331950847d36c712366be5e41e4bfb3918254336ed0ca2909cd89b1"/> </KeyPair>
-
@DabDab well first DONT put the private key in the app... the private key and the encrypt statement go in the app from step 2.
So you are building two apps -
-
a serial generator ( that has the private key and uses the encrypt statement to generate keys)
-
a plugin - that has the public key and the decrypt statement - so it can check the key that the user enters.
-
-
@Lindon Hmmm.. but How ? is there a minimal snippet ?
-
@DabDab said in How to use RSA License:
@Lindon Hmmm.. but How ? is there a minimal snippet ?
no - you have to build your own apps and plugins.