Serial number authentication



  • I've been trolling the forum looking for a way to integrate serial number authentication into a plugin. There's some good info on the subject, but I haven't been able to piece together for myself how to do it properly. Could anyone share a snippet for a project that uses serial number authentication?





  • @d-healey Great, thank you!!

    In "Simple copyright protection system for HISE" it references other ways of deactivating plugins. Is there a way to create a timer based activation system?

    For example:

    You generate 3 serial numbers.
    Serial Number 1 activates the plugin for 1 day
    Serial Number 2 activates the plugin for 1 week
    Serial Number 3 activates the plugin forever



  • @WeLoveGoodHouse said in Serial number authentication:

    @d-healey Great, thank you!!

    In "Simple copyright protection system for HISE" it references other ways of deactivating plugins. Is there a way to create a timer based activation system?

    For example:

    You generate 3 serial numbers.
    Serial Number 1 activates the plugin for 1 day
    Serial Number 2 activates the plugin for 1 week
    Serial Number 3 activates the plugin forever

    You would need to write (saveAsJSON) a file with the dates you want to work with - the user can always delete or overwrite these to defeat your authorisation.



  • @Lindon I don't think you can work with dates anyway, only the time the plugin is running (using either Engine.getUpTime() or a timer callback).



  • @ustk said in Serial number authentication:

    @Lindon I don't think you can work with dates anyway, only the time the plugin is running (using either Engine.getUpTime() or a timer callback).

    oh yes true... I guess you could use "number of instantiations" tho - so you can set the number of times the user can start the plugin in "demo mode" depending on the auth code used.



  • @Lindon The problem with the number of instantiation is that you still need a json for the value...



  • @ustk said in Serial number authentication:

    @Lindon The problem with the number of instantiation is that you still need a json for the value...

    er, yes obviously it still has the problem I pointed out...



  • @Lindon Can you encrypt the folder with the json file with something like WinZip?

    Winzip Website

    Or could you set a protocol with a packaging app that would generate a password protected file for the json upon installation? As far as I know password protected files cannot be deleted without the password.



  • @WeLoveGoodHouse You can delete any file from your system, password or not, although the operating system might try to resist the you. HISE wouldn't be able to access the contents of a zip file though so that's not a possibility. If you want to have a time limited demo you could put a timer in your code that makes the instrument go silent after 10 minutes (or whatever time period you prefer).



  • @d-healey Fair enough. Could you post a snippet of a timer that goes silent after 10 minutes?



  • I haven't tested this, but it should work. I've only applied the silencing to the on note on callback but you'd probably want to add it to on note off and on controller too.

    HiseSnippet 735.3ocsUs0aSCCE1tqdhFnHlD+.xisRakTXWPZBXrdAUAcqhtMwaSdNNsVKwNxwYPEhG4+K+CfiSZWZ25l1pD9gpdt7k7cN96bx.shwSRTZDtxISh4H7yHCmHMiaMlJjndsQ3mS5SSLbsatqCmDSSR39HLdsOYcfqTFkc9yGNjFRkLdgKD5Lkfw+hHRXJ7N3fOKBC6R84mHhlK6sOnGSIaoBUo.eVi3ghorKoi3GQsoUhfvq2wWXT5gFpgm.4bnxexvwpuKyy+LQh3hPt0nIZH7fxciZMVD5OXVslfP3xCJp70xq7WR5K7EW6unC7hr.tEHluGfKsHkJu.kZdWTpqJz29.tC5gmidkyo2FjgLsH1TDwxsmR5IgKm.Jz1mmV44hJ8aLokBxPZZDQuj2UCFWin1tdda5timW88q5T0AZ9IF2qnZWCbujco49N2ldPPqSlJ0BDb0QNRH4MFwMmFaSsV88CRkLiPIcUxiTF9wxZ0c9YUGW3HBbqU61Pb2Z1Srt66KdiuZWu543rm9PkBBfFhQRkl24JnNpYzobKgswy+0ox8xMme43dS9EDXInSkaDy1qzpvPtdogs5U88ArlLM5BtdSnKFBrbVhvk3hpj0eXpDV9U2bIpj8jByww7o1E5nlKQGgld2C+6zdsoFpUZM0GjWLWaDV5fayuBlSyEZUHs4IWZTwvj5sTgvrfxOMjZVb.wtIXZ.nerfRzp1jIByj42T7HlZ7V5TyRq1GHc2fLPXXiWNeKsD9Bcs+27c5NnpjNAAblofrkIc+1ptv4QPkupRMB4n9TiV7CDlbTZzPXMLiCLQJ4gvKhfKYUT41dVaamYHW5mY7W3LMXSqMdZvlyBhhnLs5bV9jhcK2Sx7.bRlsfuB7kFv1sIJa5AvQ7Z3ghfkumyX1VwV.2WNlWuBXdyJfY6U.yNq.lcWAL6sBXd68hw9cuOlZTQ4iIfiAcxVifwcjTPkkoHQ+CPVPrC2
    

Log in to reply
 

9
Online

673
Users

2.7k
Topics

22.7k
Posts