Security of Desktop Application

Please support our C# advertiser: Intel Parallel Studio Home
Reply

Join Date: Feb 2009
Posts: 8
Reputation: hi.meral is an unknown quantity at this point 
Solved Threads: 0
hi.meral hi.meral is offline Offline
Newbie Poster

Security of Desktop Application

 
0
  #1
May 9th, 2009
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
Reply With Quote Quick reply to this message  
Join Date: Nov 2006
Posts: 436
Reputation: JerryShaw is on a distinguished road 
Solved Threads: 72
JerryShaw JerryShaw is offline Offline
Posting Pro in Training

Re: Security of Desktop Application

 
0
  #2
May 9th, 2009
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
Reply With Quote Quick reply to this message  
Join Date: May 2009
Posts: 108
Reputation: papanyquiL is on a distinguished road 
Solved Threads: 11
papanyquiL papanyquiL is offline Offline
Junior Poster

Re: Security of Desktop Application

 
0
  #3
May 23rd, 2009
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:
  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).
  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
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C# Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC