Licensing Data Files to be Accessed Using a Proprietary Application

This procedure demonstrates how to prepare a data file to be licensed and accessed with your own application.

For this procedure, you will use a text viewer application (TextViewer.exe), provided by Thales, to represent your proprietary application, and a simple text file to represent the data file that you want to protect. The text viewer will be licensed with Feature ID 0 and the data file will be licensed with Feature ID 42. (Licenses for these Features are already present on the Demo key.)

To protect the text viewer application and the data file:

1.Using the Windows notepad application, prepare and save two copies of a text file that contains the name of your organization (or any other text string). Name the files test_42.txt and test_99.txt.

2.Do the following in Sentinel LDK Envelope:

a.Add the TextViewer.exe application to a new Sentinel LDK Envelope project. This application can be found in:

%ProgramFiles(x86)%\Thales\Sentinel LDK\VendorTools\VendorSuite\samples\

b.In the Project pane, select the TextViewer program.

c.On the General tabbed page, select the Enable data file protection check box.

d.In the version list box, select Version 2.

e.Click Protect to protect the application. The application is protected and licensed with Feature ID 0. Be sure to note the location where the protected application is saved.

f.Close the Protection Status box.

g.Save the Envelope project.

h.On the General tabbed page, click Encrypt Data. Sentinel LDK Data File Protection utility is launched. The Batch Code field displays DEMOMA.

3.Do the following in Sentinel LDK Data File Protection utility:

a.From the menu bar, select Actions > Add Files.

b.In the Files to Encrypt dialog box, click Add.

c.Browse to the text files that you prepared in step 1 above. Select the test_42.txt file. The file now appears in the Files to Encrypt dialog box.

d.Set the Feature ID field on the right side of the box to 42.

e.Set the output directory to the location where the protected text file should be written.

f.Click OK. The dialog box closes, and the text file is listed in the main pane.

g.Repeat step a through step f above. However, this time select the test_99.txt file, and assign it the Feature ID 99.

h.From the menu bar, select Actions > Encrypt All. The text files are protected.

4.Close Data File Protection utility and Envelope.

To access the protected data file:

1.Open each protected text file with Microsoft Notepad or with the unprotected version of the TextViewer application. Random characters are displayed.

2.Connect the Demo key to your machine.

3.Open the protected version of the test_42.txt file with the protected version of the TextViewer application. The original text is successfully displayed. (The Demo key contains licenses for Features 0 and 42. Therefore, the protected TextViewer application can operate and the file that was protected with Feature 42 can be accessed.)

4. Open the protected version of the test_99.txt file with the protected version of the TextViewer application. Random characters are displayed. (The Demo key does not contain a license for Feature 99.)