|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.washington.cs.rfid.security.KeyHash
public class KeyHash
Implements algorithms to hash String keys to longs.
| Constructor Summary | |
|---|---|
KeyHash()
|
|
| Method Summary | |
|---|---|
static long |
hash64(java.lang.String k,
long initval)
Hashes a String to a 64-bit number. |
static long |
hashMD5(java.lang.String k)
Returns the long result of the first 64 bits of an MD5 hash XOR'd with the last 64 bits. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public KeyHash()
| Method Detail |
|---|
public static long hash64(java.lang.String k,
long initval)
k - The String keyinitval - An initial value
public static long hashMD5(java.lang.String k)
k - The key to hash
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||