Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

Getting MD5/SHA as Number instead of string

$
0
0

As I understand Hash Values - in particular MD5 and SHA - they are Integer Values. I would like to use those integer values.

But so far every function I found to generate a MD5/SHA hash gives me a padded, hexdecimal string representation of the number - not the number itself.
Storing and prcoessing a 32/40 byte String instead of a 16/20 byte Number is kinda stupid. I could propably parse the Hexadecimal String back to a number*, but that seems like a waste of processing time.

Is there a Function/Class to generate MD5/SHA hashes that gives me a number (instead of a string) and I have just been to blind to find it?

*I am almost certain the .NET Parse or Convert functions had something for parsing Hexadecimal Strings. If not I could use code for that too.


Let's talk about MVVM: http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/b1a8bf14-4acd-4d77-9df8-bdb95b02dbe2 Please mark post as helpfull and answers respectively.


Viewing all articles
Browse latest Browse all 31927

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>