Forum

    • Register
    • Login
    • Search
    • Categories

    Serial number authentication

    Presets / Snippets
    4
    12
    188
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • W
      WeLoveGoodHouse last edited by

      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?

      1 Reply Last reply Reply Quote 0
      • d.healey
        d.healey last edited by

        https://github.com/christophhart/hise_tutorial/tree/master/SimpleCopyProtection

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        W 1 Reply Last reply Reply Quote 1
        • W
          WeLoveGoodHouse @d.healey last edited by

          @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

          Lindon 1 Reply Last reply Reply Quote 0
          • Lindon
            Lindon @WeLoveGoodHouse last edited by

            @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.

            HISE Development for hire.
            www.channelrobot.com

            ustk 1 Reply Last reply Reply Quote 0
            • ustk
              ustk @Lindon last edited by

              @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).

              Tired to press F5 in the forum...
              Studio427 Audio - Audio Instruments & FX Plugins for music production. Website - Facebook

              Lindon 1 Reply Last reply Reply Quote 0
              • Lindon
                Lindon @ustk last edited by

                @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.

                HISE Development for hire.
                www.channelrobot.com

                ustk 1 Reply Last reply Reply Quote 0
                • ustk
                  ustk @Lindon last edited by ustk

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

                  Tired to press F5 in the forum...
                  Studio427 Audio - Audio Instruments & FX Plugins for music production. Website - Facebook

                  Lindon 1 Reply Last reply Reply Quote 0
                  • Lindon
                    Lindon @ustk last edited by

                    @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...

                    HISE Development for hire.
                    www.channelrobot.com

                    W 1 Reply Last reply Reply Quote 0
                    • W
                      WeLoveGoodHouse @Lindon last edited by

                      @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.

                      d.healey 1 Reply Last reply Reply Quote 0
                      • d.healey
                        d.healey @WeLoveGoodHouse last edited by d.healey

                        @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).

                        Libre Wave - Freedom respecting instruments and effects
                        My Patreon - HISE tutorials
                        YouTube Channel - Public HISE tutorials

                        W 1 Reply Last reply Reply Quote 1
                        • W
                          WeLoveGoodHouse @d.healey last edited by

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

                          1 Reply Last reply Reply Quote 0
                          • d.healey
                            d.healey last edited by

                            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
                            

                            Libre Wave - Freedom respecting instruments and effects
                            My Patreon - HISE tutorials
                            YouTube Channel - Public HISE tutorials

                            1 Reply Last reply Reply Quote 0
                            • First post
                              Last post

                            19
                            Online

                            795
                            Users

                            5.5k
                            Topics

                            51.6k
                            Posts