-
January 22nd, 2014, 03:48 AM
#1
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 ?
-
January 22nd, 2014, 09:17 AM
#2
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.
-
January 22nd, 2014, 11:01 AM
#3
Re: SHA256.Create
Have a look into the ComputeHash method as well
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|