Quantcast
Channel: How to salt and hash a password value using c#? - Stack Overflow
Browsing all 7 articles
Browse latest View live

Answer by magnus for How to salt and hash a password value using c#?

Simple hash:public string GetSHA256Hash(string s) { if (string.IsNullOrEmpty(s)) { throw new ArgumentException("An empty string value cannot be hashed."); } Byte[] data =...

View Article



Answer by Daniel May for How to salt and hash a password value using c#?

The most popular way to do this is using a hashing algorithm. There's an excellent blog post here about how to use the MD5 algorithm to hash a string, but there are many other examples in the...

View Article

Answer by µBio for How to salt and hash a password value using c#?

Like the others have said, there are many options.Here is some sample code (using MD5 instead of SHA) from Microsoft that might help get you get started using System; using...

View Article

Answer by Christian V for How to salt and hash a password value using c#?

System.Security.Cryptography.MD5

View Article

Answer by David M for How to salt and hash a password value using c#?

Strictly speaking, you should salt the password then hash it, to avoid a dictionary attack. You can use any of the implementations of the HashAlgorithm abstract class in the System.Cryptography...

View Article


Answer by Benjamin Podszun for How to salt and hash a password value using c#?

For hashing you have several supported algorithms in System.Security.Cryptography, for your usecase you probably want to choose an SHA based hash or something similar.Regarding the comparison: You...

View Article

How to salt and hash a password value using c#?

Hai guys,I came to know that storing hash value of a password is a safe one from Preferred Method of Storing Passwords In Database... How to salt and hash a password value using c#?How to compare both...

View Article
Browsing all 7 articles
Browse latest View live




Latest Images