How can I protect the "enabled functions" license file for my program?

My application can perform 5 business functions. Now I have a requirement to build this in the licensing model for the application.

My idea is to send a "key file" with the application. The file should contain some encrypted data about which features are included in the application and which are not. I also want this midfield proof, so that not only any idiot can understand the logic and β€œcrack” it.

The decrypted version of this file should contain, for example:

   BUSINESS FUNCTION 1 = ENABLED
   BUSINESS FUNCTION 2 = DISABLED.... etc

Please give me some ideas on how to do this?

+5
source share
7 answers

Rijndael, . , .

Rijndael, , .

, , ... , , , , .

+4

, - . , ( - , , , ).

, , , " " ( ), ( , , - ).

, , , .

+2

. . , , : "Feature X , Y - ". , - . ( , , ).

, "Yay/Nay" . - . , . "" . , .

, , . , .

Yay/Nay , . , - ( ), .

, , keyfile ( ). , .

+2

Perforce , . plain text , . :

----(file begin)
key1: value1
key2: value2
expires: 2010-09-25
...
keyN: valueN
checksum: (base64-encoded blob)
---- (file end)

(/) + . / . . , - ( , , ) (, base64-encoded ) " " .

, , ( , , , base64, ). , , .

, , (, , ), . , , - . , , . , . , ...: -).

+1

"" . "System.Security.Cryptography"

, .

. Windows. .

0

ROT-13!

Edit:

ROT-13 - , 13 . (. ascii 13 char [A-Z0-9]).

. wikipedia.

-3

All Articles