Forums
New posts
Search forums
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
C# Community
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
VB.NET
Security
How to use application keys?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="tresqboy, post: 14838, member: 4013"] Well, Iam new to this forum so please forgive me if I violate few rules in here. Back to the point: First as a word of advice; anyone can disassamble ur .net application by using reflection calls to read your private data. You may want to set ReflectionPermission to your whole assembly. That can be done by modifying AssemblyInfo.vb/AssemblyInfo.cs depending on ur lang. <assembly: ReflectionPermission(SecurityAction.RequestRefuse,.. )> make sure that u set a securityAction to RequestRefuse... I cant pull the exact parameters for the class but u can check on the documentations. That atribute will prevent any reflection calls (by hackers/disassemblers) to read from .net framework but it wont prevent decompilers as MS ILDASM, or salamander, etc... second, use obfuscator tools to scramble ur code and make it real mess to read using disasemblers. (remotesoft salamander,dotfuscator...) third, u may want to create some mechanism for generating encripted keys (symetrical/assymetrical keys) please check system.security.cryptography for encryption like MD5, SHA1, DES, TripleDES. What u can do is create a key using encryption algorithm mentioned above (symetrical or assmetrical). To make it short.... A program can createsa key using HDD serial number, NIC Mac address, or any other seed u want and then a user pass the key to u (developer). U verify the algorithm if the key is valid and then u generate a privateKey and send it to the user through (email/internet). When the key is entered the application verifies it and unlock the software. Just remember there are many ways of activation using the same concept. It could be a symetric(using a single key), assymetric(using private and public keys) or combination of both. But u must know that at some point, someone will crack ur software. when that will ahppen it is just a matter of time. PS: there are also other methods of protecting(dongles,subscription, etc...) ur work but this method seems to work to many peeps outta there that is my 2cents...if I miss anything lemme know [/QUOTE]
Insert quotes…
Verification
Post reply
VB.NET
Security
How to use application keys?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top
Bottom