| | |
Security of Desktop Application
Please support our C# advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Nov 2006
Posts: 436
Reputation:
Solved Threads: 72
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
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
•
•
Join Date: May 2009
Posts: 107
Reputation:
Solved Threads: 11
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:
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).
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
C# Syntax (Toggle Plain Text)
static public string EncodeTo64(string toEncode) { byte[] toEncodeAsBytes = System.Text.ASCIIEncoding.ASCII.GetBytes(toEncode); string returnValue = System.Convert.ToBase64String(toEncodeAsBytes); return returnValue; }
C# Syntax (Toggle Plain Text)
string str = this.textBox1.Text; 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
![]() |
Similar Threads
- Integrating Desktop Application to Web Application in Netbeans 6.5 (JSP)
- Senior Desktop C# Developer (Software Development Job Offers)
- MS Access vs. MySQL (MS Access and FileMaker Pro)
- lost my desktop and start menu (Viruses, Spyware and other Nasties)
- Advertisment icons stuck to my desktop!!! (Viruses, Spyware and other Nasties)
- Desktop Background Hijacked-NEW Problem(! Smart Security) (Viruses, Spyware and other Nasties)
- Bookmarker.gen can't get rid of! (Viruses, Spyware and other Nasties)
- 'Page cannot be displayed' (Web Browsers)
Other Threads in the C# Forum
- Previous Thread: TypeName property of ObjectDataSource not found
- Next Thread: Returning Processes returns both process and services
| Thread Tools | Search this Thread |
.net access algorithm alignment app array barchart bitmap box broadcast c# c#gridviewcolumn cast check checkbox client combobox communication control conversion csharp custom database datagrid datagridview dataset datatable datetime degrees development draganddrop drawing elevated encryption enum excel file focus form format forms function gdi+ hospitalmanagementsystem httpwebrequest image index input install java label list listbox localization login mandelbrot math messagebox mouseclick mysql operator path photoshop picturebox pixelinversion plotting pointer post programming radians read regex remote remoting richtextbox server sleep socket sql statistics stream string stringformatting sun table text textbox thread time timer update usercontrol validation visualstudio webbrowser whileloop windows winforms wpf xml





