public final class Md5Utils extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
Md5Utils.CodecException |
static class |
Md5Utils.UnknownAlgorithmException |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
getMd5(Object source)
Objects are supported: byte[], char[], String, File or InputStream.
|
static String |
getMd5(Object source,
Object salt)
Objects are supported: byte[], char[], String, File or InputStream.
|
static String |
getMd5(Object source,
Object salt,
int hashIterations)
Objects are supported: byte[], char[], String, File or InputStream.
|
static String |
getMd5ToBase64(Object source)
Objects are supported: byte[], char[], String, File or InputStream.
|
static String |
getMd5ToBase64(Object source,
Object salt)
Objects are supported: byte[], char[], String, File or InputStream.
|
static String |
getMd5ToBase64(Object source,
Object salt,
int hashIterations)
Objects are supported: byte[], char[], String, File or InputStream.
|
static String |
getMd5ToHex(Object source)
Objects are supported: byte[], char[], String, File or InputStream.
|
static String |
getMd5ToHex(Object source,
Object salt)
Objects are supported: byte[], char[], String, File or InputStream.
|
static String |
getMd5ToHex(Object source,
Object salt,
int hashIterations)
Objects are supported: byte[], char[], String, File or InputStream.
|
static String |
toBase64String(byte[] source) |
static byte[] |
toBytes(InputStream in) |
static String |
toHexString(byte[] source) |
public static String getMd5(Object source)
source - public static String getMd5(Object source, Object salt)
source - salt - public static String getMd5(Object source, Object salt, int hashIterations)
source - salt - hashIterations - public static String getMd5ToHex(Object source)
source - public static String getMd5ToHex(Object source, Object salt)
source - salt - public static String getMd5ToBase64(Object source)
source - public static String getMd5ToBase64(Object source, Object salt)
source - salt - public static String getMd5ToHex(Object source, Object salt, int hashIterations)
source - salt - hashIterations - public static String getMd5ToBase64(Object source, Object salt, int hashIterations)
source - salt - hashIterations - public static final String toBase64String(byte[] source)
public static final String toHexString(byte[] source)
public static final byte[] toBytes(InputStream in) throws IOException
IOExceptionCopyright © 2021. All rights reserved.