Search Results

C# .NET - Hash Algorithms - MD5, SHA1, SHA256, SHA512

By Utkarsh Patel on 11-May-09 23:42. View Comments
Tags: ,
One of the great problems I have had with OO languages such as .NET and Java is that some tasks, that are as simple as calling a function in other languages, are complicated to no end. One such problem is with the different hash functions in .NET available via System.Security.Cryptography. In PHP if I need to get the MD5 of a string I simply call the built in MD5 function. In .NET I need to build my own MD5 function using System.Security.Cryptography and that, even though I understand why it is the way it is, can get a little annoying after a while. I have taken the liberty of simplifying this process by creating a HASH class that can be plugged into your programs as either a new class or by creating a hash.dll of out of it. The code lets you call MD5, SHA1, SHA256 and SHA512 functions and takes care of the process for you.

C# .NET - Creating a Custom MessageBox Dialog

By Utkarsh Patel on 19-Apr-09 05:57. View Comments
Tags: ,
MessageBox.Show() is a great way get user confirmation before performing certain tasks in .NET. However what if your requirements are more complex then simply getting a YES or NO response? What if you want to get the user to enter in a password? Or you just want to change the design of the existing MessageBox to go with the design of your application. Creating a custom MessageBox will solve this problem and bring greater functionality to your application. Article photo

C# .NET CF - Manage Windows CE Device Power Settings

By Utkarsh Patel on 19-Apr-09 01:26. View Comments
Tags: ,
This article will show you how to manage the power settings of your Windows CE device. Using this C# class you will be able suspend, turn off, idle and reset a Windows CE device. It will even allow you to manage the power state of the screen by turning off the back light as well as monitoring the battery power level.

Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 Unported License.