TaskBean API
0.5

glogic.jthin.base
Class MrHash

java.lang.Object
  extended byglogic.jthin.base.MrHash

public class MrHash
extends java.lang.Object

Generates a hexadecimal representation of a SHA-1 hash.

Author:
Sam Taha

Constructor Summary
MrHash()
           
 
Method Summary
 java.lang.String toHexString(byte[] data)
          Map a sha1 hash to a hex string value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MrHash

public MrHash()
       throws java.security.NoSuchAlgorithmException
Method Detail

toHexString

public java.lang.String toHexString(byte[] data)
Map a sha1 hash to a hex string value.

Parameters:
data - byte array to convert to hex string representation.
Returns:
40 char lowercase hex string.

TaskBean API
0.5

Copyright © Grand Logic, Inc. All Rights Reserved.