org.springframework.data.redis.core.script
Class DigestUtils
java.lang.Object
org.springframework.data.redis.core.script.DigestUtils
public abstract class DigestUtils
- extends Object
Utilties for working with MessageDigest
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DigestUtils
public DigestUtils()
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