public class GenUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static long |
MILLIS_IN_A_DAY
Milliseconds in a day.
|
| Constructor and Description |
|---|
GenUtil() |
public static final long MILLIS_IN_A_DAY
public static void addDebug(StringBuffer debugBuf, String message)
debugBuf - Debug Buffer which can be nullmessage - Message to writepublic static String digest(String s, String algorithm) throws NoSuchAlgorithmException
s - Input Stringalgorithm - Algorithm to use. Examples: SHA-1, SHA-256, MD5.NoSuchAlgorithmException - if algorithm is invalidCopyright © 2013- Suresh Mahalingam. All Rights Reserved.