Passwort Protection "Enter E-Mail"
-
@Lindon how does this HISE RSA system work?
-
@treynterrio Here's how the system works:
https://forum.juce.com/t/juce-rsa-implementation/10341/17I highly suggest you check out HISE Activate if you're looking for instant integration:
https://activate.hise.dev/- Tight integration with the HISE framework
- No additional 3rd party software required
- Activation procedure directly from within the plugin
- Completely customizable activation UI
- Ready-to-use HiseScript code templates
-
-
create a key-pair using HISE... Tools>License Management> Create RSA Key Pair
-
Build 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)
- you now have a string that you need to verify (how you do that is up to you)
So at this point the only way to generate keys for your product is to know the private key - and if you dont accidentally give this away then there massively difficult for a hacker to obtain this key - so they cannot build a KeyGen for your product - even if they know exactly what the un-encrypted verify string looks like.
If it all sounds too hard, it isnt, I have an RSA encryption system I have licensed to other developers.
- see? all this was just to sucker you in.....:face_with_tongue:
Or as Dan says if you want an online solution look at HISE activate
-
-
@Lindon is there another thread or something that explains what to do because I couldn't follow anymore at step 2 :D
I've created a RSA Key Pair and now?I found this but this makes no sense to me:
https://forum.hise.audio/topic/8786/hise-rsa-not-working?_=1712747148847 -
@Lindon I also found this post from you with a snippet that isnt available anymore https://forum.hise.audio/topic/8053/rsa-output-length?_=1712747613015
-
@treynterrio said in Passwort Protection "Enter E-Mail":
@Lindon I also found this post from you with a snippet that isnt available anymore https://forum.hise.audio/topic/8053/rsa-output-length?_=1712747613015
there is no snippet in that thread - its an example of a serial that RSA generates..
-
@d-healey If I want do the same with the Activation Button that there is a Panel in front of it that you couldn't click before you've not entered a Serial what would the definition for this?
inline function onSerialInputControl(component, value)
{
Panel3.showControl(????????????(value));
}
const var Panel3 = Content.getComponent("Panel3");
Panel3.showControl(false); -
@treynterrio I'm not sure what you're asking
-
@d-healey oh I thought I'd response to the post.
you've send me this :
const var Label1 = Content.getComponent("Label1"); Label1.setControlCallback(onLabel1Control); inline function onLabel1Control(component, value) { Panel1.showControl(Server.isEmailAddress(value)); } const var Panel1 = Content.getComponent("Panel1"); Panel1.showControl(false);
and I want do the same for the Serial Label only when you Input the Serial you can click activate.
When the Serial Number is entered enable the Panel
-
@treynterrio Just do the same but replace Panel with Button.
-
@d-healey I tried this but its not Server.isEmailAdress it need this for the License
-
@treynterrio Oh right, how are you validating the license?
-
@d-healey said in Passwort Protection "Enter E-Mail":
Oh right, how are you validating the license
setvalidLicense?
-
@treynterrio There is no built in functionality for this. You're creating your own system here so you need to do your own validation.
-
@d-healey something like this?
var licenseInput = Content.getComponent("licenseInput");
licenseInput.set("textChangedCallback", function() { -
@treynterrio Not really. Only you know how you want to validate your license. You have to write a function to do that, then worry about the GUI side of it.
-
@d-healey ok this sounds to difficult for me :D