Infralution Support Forum Index Infralution Support
Support groups for Infralution products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Sample Code for Custom EncryptedLicenseProvider?

 
Post new topic   Reply to topic    Infralution Support Forum Index -> Licensing Support
View previous topic :: View next topic  
Author Message
anandcbe14



Joined: 27 Apr 2007
Posts: 1

PostPosted: Fri Apr 27, 2007 2:53 am    Post subject: Sample Code for Custom EncryptedLicenseProvider? Reply with quote

I'm evaluating the Infralution Licensing product. I want to store keys entered as encrypted strings in a file or registry. Any code samples to achieve this would be highly appreciated.

Thanks
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Sat Apr 28, 2007 12:10 am    Post subject: Reply with quote

To encrypt the keys and store them in a file you would derive a new class from EncryptedLicenseProvider and the override the WriteKeyToFile and ReadKeyFromFile methods to encrypt the key before saving it.

If you are using the standard LicenseInstallForm then you need to set the LicenseProvider property to an instance of your derived class.

An alternative approach is for your application to take full control over loading/saving the key and use the EncryptedLicenseProvider.ValidateLicenseKey method to verify the key. The CustomLicensedApp sample project shows how to do this. In this approach you can't use the standard LicenseInstallForm - you need to either create your own.
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> Licensing Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group