-
SHA256.Create
Experimenting with the SHA256 class and now struggling with the Create method overload that takes the hashname as a parameter
Code:
SHA256 alg1 = SHA256.Create(); // returns a default SHA256Managed instance
SHA256 alg2 = new SHA256Cng(); // returns a SHA256Cng instance
SHA256 alg3 = SHA256.Create("SHA256Cng"); //always returns null
Guess I'm not passing a correct string !?!?
Any suggestions ?
-
Re: SHA256.Create
According to MSDN, you can't get SHA256Cng with the String Create Method:
http://msdn.microsoft.com/library/we...v=vs.110).aspx
It doesn't list any additional valid parameters for the SHA256 class.
-
Re: SHA256.Create
Have a look into the ComputeHash method as well