public class DigestHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ALGORITHM_SHA1 |
static String |
PROPERTY_ENCRYPTION_ALGORITHM |
static String |
SYSTEM_PROPERTY_REALM_ENCRYPTION_ALGORITHM |
| Constructor and Description |
|---|
DigestHelper() |
| Modifier and Type | Method and Description |
|---|---|
static String |
encrypt(String str,
String algo) |
static String |
toHexString(byte[] bytes)
Returns a string in the hexadecimal format.
|
public static final String SYSTEM_PROPERTY_REALM_ENCRYPTION_ALGORITHM
public static final String ALGORITHM_SHA1
public static final String PROPERTY_ENCRYPTION_ALGORITHM
public static String toHexString(byte[] bytes)
bytes - the converted bytesIllegalArgumentException - if the byte array is nullCopyright © 2018–2019 Butor Inc.. All rights reserved.