org.springframework.data.redis.core.script
Class DigestUtils

java.lang.Object
  extended by org.springframework.data.redis.core.script.DigestUtils

public abstract class DigestUtils
extends Object

Utilties for working with MessageDigest


Constructor Summary
DigestUtils()
           
 
Method Summary
static String sha1DigestAsHex(String data)
          Returns the SHA1 of the provided data
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DigestUtils

public DigestUtils()
Method Detail

sha1DigestAsHex

public static String sha1DigestAsHex(String data)
Returns the SHA1 of the provided data

Parameters:
data - The data to calculate, such as the contents of a file
Returns:
The human-readable SHA1