I'm using C# and wondering why the .Net function PasswordDeriveBytes returns a different result from other SHA256 algorithums.
I'm calling it as follows:
byte[] saltValueBytes = Encoding.ASCII.GetBytes(saltValue);
var hash = PasswordDeriveBytes("1234567890", saltValueBytes, "SHA256", 1);
byte[] SHA256Pass = hash.GetBytes();
I am expecting to get the hash c775e7b757ede630cd0aa1113bd102661ab38829ca52a6422ab782862f268646
but instead I get b????????A?n?z$?]??9,m^????@n?
I dont know what the problem is. how this function works and why the result i'm getting does not look like a SHA 256 hash.
thanks