المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Is it possible to authenticate a dll class library ?



C# Programming
03-13-2010, 04:00 PM
Hi,

I'm writing my license management system, and I'd like to include it in a .NET Class Library. As I don't want someone to load the library to see the object structures, I will probably leave these classes private, and only send let's say a boolean to the calling application to say "ok it's licensed" or "no you cannot run" ...

How could I be sure the user doesn't replace the dll with a "yes card" dll (a class that would always return true http://www.barakasoft.com/script/Forums/Images/smiley_laugh.gif ) ?

Maybe return some other informations as the current date and encrypt them using a key containing the license number would be a good security trick ?

Thanks for advice !