-
Moderator
Encrypt password in C#.Net
How to encrypt password in C#.Net?
NOTE : [This question was asked by sbehera02]
-
Expert Member
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.
-
Moderator
Re: Encrypt password in C#.Net
Thank you for your quick answer Barbie
-
Contributing Member
Re: Encrypt password in C#.Net
Barbie it was a good explanation given with syntax. I also tried this new command and got the result.
-
Junior Member
Re: Encrypt password in C#.Net
How to encrypt password in C#.Net?
-
Junior Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules