Numeric operations over SHA-1 generated keys in C#
Posted
by webdreamer
on Stack Overflow
See other posts from Stack Overflow
or by webdreamer
Published on 2010-05-14T09:50:50Z
Indexed on
2010/05/14
9:54 UTC
Read the original article
Hit count: 318
I'm trying to implement a Chord distributed hash table. I want to use SHA-1 as the hash function to generate node ids and map values to the DHT. However, I'll need to use numerical operations on the SHA-1 generated key, such as a modulo, for example. I wonder in which type of variable should I put the array of bytes I get, and how can I convert from one to another.
© Stack Overflow or respective owner