org.apache.shindig.common.util
Class HashUtil

java.lang.Object
  extended by org.apache.shindig.common.util.HashUtil

public final class HashUtil
extends Object

Routines for producing hashes.


Method Summary
static String checksum(byte[] data)
          Produces a checksum for the given input data.
static String rawChecksum(byte[] data)
          Produces a raw checksum for the given input data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

checksum

public static String checksum(byte[] data)
Produces a checksum for the given input data. Currently uses a hexified message digest.

Parameters:
data -
Returns:
The checksum.

rawChecksum

public static String rawChecksum(byte[] data)
Produces a raw checksum for the given input data. Currently uses a message digest

Parameters:
data -
Returns:
The checksum.


Copyright © 2007-2012. All Rights Reserved.