Software Licensing and Software Piracy: Part 3

If you’ve made it Part 3 then you either find this subject really interesting or else you have difficulty sleeping at night ūüôā¬†¬†This final part of my article on Software Licensing discusses some of the ‘nitty gritty’ and gets down and dirty with some real code samples. All code samples¬†are taken from oneSql.

The value of Part 3 of this article¬†will be mainly to developers using the Xojo Programming Language for Cross Platform Software Development, although developers in any language can benefit and in fact anybody with an interest in going ‘behind the scenes’ of software development.

One thing very noticeable when preparing this article is just how much ‘behind the scenes’ work is necessary sometimes to give the customer a simple, slick¬†experience. Simple is hard ! The way this article is structured with a Customer Experience section followed straight after by a Behind the Scenes section, makes this very clear.

CUSTOMER EXPERIENCE [1]

When the customer decides that your product is for her, as far is as she is concerned the following two events take place:

  • The customer clicks the Buy Now button and is taken to the Paypal login page.
  • The customer decides whether to pay via Card or Paypal, then fills in the form and submits the document.

BEHIND THE SCENES [1]

chol.technology receive the Order Confirmation via Paypal. The chol.technology LicenseBoss Software automates the following sequence of events:

  • Product and Edition Information fetched from the LicenseBoss Database
  • The Encryption Key for the Product Editon is retrieved. Abbreviated as Key1
  • LicenseBoss parses and Inputs: User Name, Email Address, TimeStamp and Transaction ID
  • LicenseBoss combines the input into a string with appropriate delimiters and identity markers
  • We¬†now have a ClearTextLicenseString
  • The ClearTextLicenseString is then encrypted using Key1. We now have¬†the EncryptedLicenseString
  • The¬†ClearTextLicenseString and the¬†EncryptedLicenseString are then concatenated
  • We now have the¬†FirstPassLicenseFileString
  • FirstPassLicenseFileString is then encrypted using the License File Encryption Key =¬†Key 2
  • We now have the EncryptedLicenseFileContentsString
  • An email is then generated from a Template and the¬†EncryptedLicenseFileContentsString¬† is appended
  • The email is sent to the customer

CUSTOMER EXPERIENCE [2]

The customer receives an email which looks similar to this:

licenseemail

The instructions are Clearly Documented for the customer in an email as a Four Step Process. After Step 4 the product is fully licensed, and the window below is displayed briefly before closing automatically:

onesqllicensewindow

BEHIND THE SCENES [2]

The Software License window, accepts the email pasted into it and immediately strips the unnecessary information and displays the encrypted license. The actual encrypted license is contained between the <CHOLTECH> and </CHOLTECH> tags, therefore the only part of the pasted email that is displayed and then processed is the part taken from between those two tags.

When the Save button is pressed the encrypted license is created as a text file and stored in the SupportFiles folder within the oneSql folder. The newly created license file is called oneSqlLicense.lic

At this point the License File Decode method is called with the license file contents as a string parameter. Multiple flags are altered and adjusted within the program to indicate that the product is now licensed. Further details on that wouldn’t be prudent for me to discuss publicly ūüôā

The actual license file decode method is straightforward. All the Encryption and Decryption routines are pre-build, based on my R10Cipher File and Text Encryption product, (shameless plug Р developer licenses are available for the Encryption modules, contact me for details) and imported into my products as a module whenever I start to develop a new program.

Obviously the DecodeLicenseFile method basically reverses the work done by the EncodeLicenseFile method in the LicenseBoss program as described in step by step detail earlier.

I know some of you out there are Xojo Developers, so here’s a commented example of the code. You can see how straightforward it actually is:

decodelicensefile1

decodelicensefile2

decodelicensefile3

 

NOTE: Licensing in this fashion has an additional benefit. It caters for Zero Effort Configuration.

In a corporate environment if you were rolling out oneSql to dozens of computers, you could have a centrally situated Corporate or Site License which could be copied to each persons computer using a script. Very Fast, Very Simple and Damned Convenient ūüôā ¬†Essentially zero interaction required from the user. That’s got to be a good thing ūüôā

busbanner

Affiliate Links

oneSql Multi Database Tool: Final Beta

The Final Beta of my Cross Platform, Multi¬†Language, Multi¬†Database Tool –¬†oneSql is now available. Hopefully I’ve got everything right and it performs as expected with no (major!) bugs. Existing Beta Testers can download from the usual place, and new Beta Testers can sign up HERE.

Prior to release I have to finish the Manual, finalise Pricing, setup Paypal and also setup a Sample Database for new users to use during their Trial Mode. I also need to put¬†the oneSql website live … mmm more than I realised … ūüôā

The final artwork has arrived back for the oneSql box and the oneSql manual, you can see the images below:

onesqlcoverimages

Note that for this final Beta you should delete both your Settings and your Preferences file as there have been changes involving encryption.

For information on Software Licensing for oneSql, have a look at my recent blog posts on this subject, here and here.

I wanted to do something different to mark the release of oneSql, so I am toying with the following idea of a bonus or incentive, I’d love to know your opinions:

The first 10 people to purchase any edition of oneSql (except the Single User Standard Edition) will receive a Limited Edition oneSql mug (1 of only 20 in existence) as well as a goody bag of assorted promotional items. In addition they will receive a printed and signed edition of my computer security ebook, ‘Securing the Network’. I may even throw a T-Shirt in there as well ūüôā I will ship this bonus to anywhere in the world.¬†

The first 100 purchasers of oneSql Single User Standard Edition receive a voucher worth $5 off their next purchase from chol.technology.

As always – leave you comments below. If you don’t talk I can’t listen.

busbanner

Affiliate Links