Hi,
How to use SHA1 Encryption and Decryption algorithm?
Thanks,
Gayatri Pattar
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Reena SinghPosted Nov 18, 2015, 5:07 AM
Anil SinghPosted Nov 18, 2015, 4:58 AM
Sarath KumarPosted Mar 26, 2014, 10:04 AM
This is algorithm. it can be "MD5" or "SHA1".
Hash algorithm used to generate password. Allowed values are: "MD5" and
"SHA1". SHA1 hashes are a bit slower, but more secure than MD5 hashes.
System.Security.Cryptography namespace is used for encryption and decryption.
Password DeriveBytes convert it to byte first
Create Decryptor and Create Encryptor is used for password encryption and decryption.
Below is the very useful link for understanding sha1 encryption and it is explained with example.
http://www.codeproject.com/KB/security/SimpleEncryption.aspx
hope this will helpful for you