Hi,
How to use SHA1 Encryption and Decryption algorithm?
Thanks,
Gayatri Pattar
How to use SHA1 Encryption and Decryption algorithm?
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Anil Singh61 reputationPosted Nov 17, 2015, 11:58 PM EST
Sarath KumarRank #3,637 · 402 reputationPosted Mar 26, 2014, 6:04 AM EDT
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
Reena Singh2 reputationPosted Nov 18, 2015, 12:07 AM EST