Prepare for your Next Interview
This is a discussion on Encrypt password in C#.Net within the C# forums, part of the Software Development category; How to encrypt password in C#.Net? NOTE : [This question was asked by sbehera02]...
|
|||
|
Encrypt password in C#.Net
How to encrypt password in C#.Net?
NOTE : [This question was asked by sbehera02] |
| The Following User Says Thank You to Lokesh M For This Useful Post: | ||
| Sponsored Links |
|
|||
|
Re: Encrypt password in C#.Net
There is a function for this purpose:
encrypt(text,password) This will encrypts the text with the password and returns a string. There is a decrypt function too: decyrpt(text,password) This does the reverse operation. |
|
|||
|
Re: Encrypt password in C#.Net
In the System.Security.Cryptography namespace the PasswordDeriveBytes class will let you derive a cryptographic key from a password string. You can
then use this key in one of the encryption classes such as Rijndael. When encrypting/decrypting you can either act on an array of bytes in memory, or you can use CryptoStream to do stream-based IO but with cryptography applied. |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Generate random password Using PHP | fred | PHP | 2 | 02-06-2007 08:56 AM |
| Help me retrieve my password | joel | MY SQL | 1 | 12-19-2006 02:53 AM |