Click here to Skip to main content
15,897,226 members
Home / Discussions / C#
   

C#

 
QuestionUser Interface, setup project. Pin
steve_rm8-Aug-07 23:18
steve_rm8-Aug-07 23:18 
AnswerRe: User Interface, setup project. Pin
Christian Graus8-Aug-07 23:26
protectorChristian Graus8-Aug-07 23:26 
QuestionRe: User Interface, setup project. Pin
steve_rm9-Aug-07 0:26
steve_rm9-Aug-07 0:26 
AnswerRe: User Interface, setup project. Pin
originSH9-Aug-07 1:11
originSH9-Aug-07 1:11 
QuestionEncryption Pin
sangramkp8-Aug-07 23:17
sangramkp8-Aug-07 23:17 
AnswerRe: Encryption Pin
Talal Sultan8-Aug-07 23:26
Talal Sultan8-Aug-07 23:26 
QuestionRe: Encryption Pin
sangramkp8-Aug-07 23:29
sangramkp8-Aug-07 23:29 
AnswerRe: Encryption Pin
Talal Sultan8-Aug-07 23:36
Talal Sultan8-Aug-07 23:36 
You have two types of hashes you can do, MD5 or SHA1. The following method gives you a SHA1 hash string of the string it receives.


public string CreateSHA1PasswordHash(string inputString)
{
	SHA1 sha1 = new SHA1CryptoServiceProvider();  
	byte[] buffer = Encoding.UTF8.GetBytes(inputString); 
	byte[] cipher = sha1.ComputeHash(buffer);
	StringBuilder sb = new StringBuilder(cipher.Length * 2);  
	for (int i=0; i<cipher.Length; i++)  
           sb.Append(cipher[i].ToString("x2"));  
	return sb.ToString();
}


Hope this helps.

Talal





"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
--Rich Cook

AnswerRe: Encryption Pin
Christian Graus8-Aug-07 23:35
protectorChristian Graus8-Aug-07 23:35 
AnswerRe: Encryption Pin
Vasudevan Deepak Kumar9-Aug-07 0:17
Vasudevan Deepak Kumar9-Aug-07 0:17 
QuestionAvailable Domains in Network Pin
stancrm8-Aug-07 23:13
stancrm8-Aug-07 23:13 
AnswerRe: Available Domains in Network Pin
glFrustum8-Aug-07 23:46
glFrustum8-Aug-07 23:46 
QuestionInstalling a windows service on a windows 2003 server Pin
Leia20118-Aug-07 22:50
Leia20118-Aug-07 22:50 
AnswerRe: Installing a windows service on a windows 2003 server Pin
Talal Sultan8-Aug-07 23:22
Talal Sultan8-Aug-07 23:22 
Questionmarkquee in c# Pin
monuSaini8-Aug-07 22:37
monuSaini8-Aug-07 22:37 
AnswerRe: markquee in c# Pin
help as an alias8-Aug-07 23:03
help as an alias8-Aug-07 23:03 
GeneralRe: markquee in c# Pin
monuSaini8-Aug-07 23:06
monuSaini8-Aug-07 23:06 
GeneralRe: markquee in c# Pin
help as an alias8-Aug-07 23:09
help as an alias8-Aug-07 23:09 
GeneralRe: markquee in c# Pin
monuSaini8-Aug-07 23:15
monuSaini8-Aug-07 23:15 
GeneralRe: markquee in c# Pin
help as an alias8-Aug-07 23:35
help as an alias8-Aug-07 23:35 
GeneralRe: markquee in c# Pin
Christian Graus8-Aug-07 23:37
protectorChristian Graus8-Aug-07 23:37 
GeneralRe: markquee in c# Pin
help as an alias8-Aug-07 23:39
help as an alias8-Aug-07 23:39 
GeneralRe: markquee in c# Pin
Christian Graus8-Aug-07 23:41
protectorChristian Graus8-Aug-07 23:41 
GeneralRe: markquee in c# Pin
help as an alias8-Aug-07 23:43
help as an alias8-Aug-07 23:43 
GeneralRe: markquee in c# Pin
Christian Graus8-Aug-07 23:54
protectorChristian Graus8-Aug-07 23:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.