sha256

Hashing passwords with MD5 or sha-256 C#

拟墨画扇 提交于 2019-11-26 04:33:47
问题 I\'m writing a register form for a application but still having problems with being new to c#. I am looking to encrypt/hash passwords to md5 or sha-256, preferably sha-256. Any good examples? I want it to be able to take the information from \"string password;\" and then hash it and store in the variable \"string hPassword;\". Any ideas? 回答1: Don't use a simple hash, or even a salted hash. Use some sort of key-strengthening technique like bcrypt (with a .NET implementation here) or PBKDF2

Are there any SHA-256 javascript implementations that are generally considered trustworthy?

ぃ、小莉子 提交于 2019-11-26 03:51:18
问题 This question was migrated from Information Security Stack Exchange because it can be answered on Stack Overflow. Migrated 6 years ago . I am writing a login for a forum, and need to hash the password client side in javascript before sending it on to the server. I\'m having trouble figuring out which SHA-256 implementation I can actually trust. I was expecting there to be some kind of authoritative script that everyone used, but I\'m finding loads of different projects all with their own