@Deprecated public final class Digester extends Object
Modifier and Type | Field and Description |
---|---|
static String |
MD5
Deprecated.
|
static String |
SHA1
Deprecated.
|
static String |
SHA256
Deprecated.
There are five (5) FIPS-approved* algorithms for generating a condensed representation of a message (message
digest): SHA-1, SHA-224, SHA-256,SHA-384, and SHA-512.
|
static String |
SHA384
Deprecated.
|
static String |
SHA512
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static String |
getBCrypt(String text)
Deprecated.
|
static byte[] |
getDigest(byte[] data,
String algorithm)
Deprecated.
|
static String |
getDigest(String data,
String algorithm)
Deprecated.
|
static String |
getMD5Hex(String data)
Deprecated.
Gets MD5 encoded -> hex string.
|
static String |
getSHA1Hex(String data)
Deprecated.
Gets SHA-1 encoded -> hex string.
|
static boolean |
matchBCrypted(String candidate,
String hash)
Deprecated.
|
static String |
toHEX(byte[] data)
Deprecated.
Converts a byte array to a string Hex.
|
static String |
toHEX(String data)
Deprecated.
Converts a byte array to a string Hex.
|
public static final String SHA1
public static final String MD5
public static final String SHA256
public static final String SHA384
public static final String SHA512
public static String getDigest(String data, String algorithm) throws NoSuchAlgorithmException
NoSuchAlgorithmException
public static byte[] getDigest(byte[] data, String algorithm) throws NoSuchAlgorithmException
NoSuchAlgorithmException
public static String getSHA1Hex(String data)
public static String toHEX(String data)
data
- to be convertedpublic static String toHEX(byte[] data)
data
- to be convertedCopyright © 2003–2018 Magnolia International Ltd.. All rights reserved.