How to encrypt password in C#.Net?
NOTE : [I][This question was asked by sbehera02][/I]
Printable View
How to encrypt password in C#.Net?
NOTE : [I][This question was asked by sbehera02][/I]
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.
Thank you for your quick answer Barbie
Barbie it was a good explanation given with syntax. I also tried this new command and got the result.
How to 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.