943,928 Members | Top Members by Rank

Ad:
  • C# Discussion Thread
  • Unsolved
  • Views: 905
  • C# RSS
May 9th, 2009
0

Security of Desktop Application

Expand Post »
Well,
I developed a c#.net Desktop Application.
Its workihng properly
but now I want to intall it to another PC but where no .net installed
but I want specific security there.
At installation time I want a special key to install the software.
How can I achive this? please help
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
hi.meral is offline Offline
9 posts
since Feb 2009
May 9th, 2009
0

Re: Security of Desktop Application

If you are referring to licensing the software application on the target machine, you may want to checkout this website:
http://www.eziriz.com/intellilock.htm

I use this product, and it is very nice, plus it will prevent others from reverse engineering it.

The target machine will need dot net, and you can put that into your installer.

// Jerry
Reputation Points: 69
Solved Threads: 75
Posting Pro in Training
JerryShaw is offline Offline
465 posts
since Nov 2006
May 23rd, 2009
0

Re: Security of Desktop Application

Hi! If you want to make things more interesting (and fun in my opinion) and you don't want to use commercial software to secure your program, why don't you use a simple encryption routine? Here is an example that I've used in some of my own desktop apps:
C# Syntax (Toggle Plain Text)
  1. static public string EncodeTo64(string toEncode)
  2.  
  3. {
  4.  
  5. byte[] toEncodeAsBytes
  6.  
  7. = System.Text.ASCIIEncoding.ASCII.GetBytes(toEncode);
  8.  
  9. string returnValue
  10.  
  11. = System.Convert.ToBase64String(toEncodeAsBytes);
  12.  
  13. return returnValue;
  14.  
  15. }
This is simple base64 encoding for a string... You can make a form where the user has to input their name, and the required 'password' is the result of that name being encoded to base64. Here is what you'd put in the 'Login' button click event (or whatever name you use).
C# Syntax (Toggle Plain Text)
  1. string str = this.textBox1.Text;
  2. this.textBox2.Text = EncodeTo64(str);

Additionally, you can even use different methods such as MD5, SHA-1, and many others... you can even combine all of them. I myself combine MD5, SHA-1, and base64 to be read from a keyfile on the users hard drive. Of course, this is not as easy as using a one-click commercial program, but to me it's MUCH more fun . Hope this helps.

-papanyquiL
Reputation Points: 55
Solved Threads: 18
Junior Poster
papanyquiL is offline Offline
168 posts
since May 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C# Forum Timeline: TypeName property of ObjectDataSource not found
Next Thread in C# Forum Timeline: Returning Processes returns both process and services





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC