Click here to Skip to main content
15,877,051 members
Home / Discussions / C#
   

C#

 
GeneralAnother DataEntry Pin
Mazdak17-Nov-02 19:35
Mazdak17-Nov-02 19:35 
GeneralDetermine Type of OS That User Used Pin
yccheok17-Nov-02 16:08
yccheok17-Nov-02 16:08 
GeneralRe: Determine Type of OS That User Used Pin
Nick Parker17-Nov-02 16:17
protectorNick Parker17-Nov-02 16:17 
GeneralRe: Determine Type of OS That User Used Pin
Vasudevan Deepak Kumar17-Nov-02 23:39
Vasudevan Deepak Kumar17-Nov-02 23:39 
GeneralComplex relational database Pin
laphijia17-Nov-02 11:19
laphijia17-Nov-02 11:19 
GeneralRe: Complex relational database Pin
Marc Clifton17-Nov-02 13:50
mvaMarc Clifton17-Nov-02 13:50 
GeneralBinary Registry Entry Pin
Jassim Rahma17-Nov-02 10:30
Jassim Rahma17-Nov-02 10:30 
GeneralRe: Binary Registry Entry Pin
Mazdak17-Nov-02 19:52
Mazdak17-Nov-02 19:52 
Your problem is writing to registry or you have problem to change password to binary value?

If your problem is first one,search this site,you can find an article about it.If it is second one you can write a function that get password string and return it like this:

public static byte[] EncryptPassword(string password)
{
	UnicodeEncoding encoding = new UnicodeEncoding();
	byte[] hashBytes = encoding.GetBytes( password );

        // compute SHA-1 hash.
	SHA1 sha1 = new SHA1CryptoServiceProvider();
	byte[] cryptPassword = sha1.ComputeHash ( hashBytes );

	return cryptPassword;
}


Mazy

"And the carpet needs a haircut, and the spotlight looks like a prison break
And the telephone's out of cigarettes, and the balcony is on the make
And the piano has been drinking, the piano has been drinking...not me...not me
-Tom Waits

GeneralMy Own Database File Pin
Jassim Rahma17-Nov-02 9:28
Jassim Rahma17-Nov-02 9:28 
GeneralRe: My Own Database File Pin
Vasudevan Deepak Kumar17-Nov-02 23:21
Vasudevan Deepak Kumar17-Nov-02 23:21 
GeneralAudio Files in DLL Pin
Jassim Rahma17-Nov-02 9:24
Jassim Rahma17-Nov-02 9:24 
GeneralRe: Audio Files in DLL Pin
Jassim Rahma21-Nov-02 14:27
Jassim Rahma21-Nov-02 14:27 
GeneralKeyboard Language Pin
Jassim Rahma17-Nov-02 9:09
Jassim Rahma17-Nov-02 9:09 
GeneralRe: Keyboard Language Pin
Mazdak17-Nov-02 18:44
Mazdak17-Nov-02 18:44 
GeneralInvoice Printing Pin
Jassim Rahma17-Nov-02 9:06
Jassim Rahma17-Nov-02 9:06 
GeneralRegex question Pin
leppie17-Nov-02 8:05
leppie17-Nov-02 8:05 
GeneralRe: Regex question Pin
Bog18-Nov-02 14:52
Bog18-Nov-02 14:52 
GeneralCodeProject reformatted me Pin
Bog18-Nov-02 14:53
Bog18-Nov-02 14:53 
GeneralAAAAARRGH Pin
Bog18-Nov-02 14:55
Bog18-Nov-02 14:55 
GeneralRe: AAAAARRGH Pin
leppie19-Nov-02 11:19
leppie19-Nov-02 11:19 
GeneralAccessing menu items from UserControl Pin
Paul Silvernail17-Nov-02 4:46
Paul Silvernail17-Nov-02 4:46 
GeneralRe: Accessing menu items from UserControl Pin
djkno317-Nov-02 5:14
djkno317-Nov-02 5:14 
GeneralDirectoryEntry Pin
Mazdak17-Nov-02 3:15
Mazdak17-Nov-02 3:15 
GeneralRe: DirectoryEntry Pin
leppie17-Nov-02 7:11
leppie17-Nov-02 7:11 
GeneralRe: DirectoryEntry Pin
Mazdak17-Nov-02 8:05
Mazdak17-Nov-02 8:05 

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.