public class DigestUtils extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
DigestUtils.DigestException |
| 构造器和说明 |
|---|
DigestUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static byte[] |
digest(byte[] source,
String algorithm) |
static String |
digest(String source,
String algorithm) |
static String |
digest(String source,
String algorithm,
Charset charset) |
static byte[] |
toMd5(byte[] source) |
static String |
toMd5(String source) |
static String |
toMd5(String source,
Charset charset) |
static byte[] |
toSha1(byte[] source) |
static String |
toSha1(String source) |
static String |
toSha1(String source,
Charset charset) |
static byte[] |
toSha224(byte[] source) |
static String |
toSha224(String source) |
static String |
toSha224(String source,
Charset charset) |
static byte[] |
toSha256(byte[] source) |
static String |
toSha256(String source) |
static String |
toSha256(String source,
Charset charset) |
static byte[] |
toSha512(byte[] source) |
static String |
toSha512(String source) |
static String |
toSha512(String source,
Charset charset) |
public static byte[] toMd5(byte[] source)
public static byte[] toSha1(byte[] source)
public static byte[] toSha224(byte[] source)
public static byte[] toSha256(byte[] source)
public static byte[] toSha512(byte[] source)
public static String digest(String source, String algorithm) throws NoSuchAlgorithmException
public static String digest(String source, String algorithm, Charset charset) throws NoSuchAlgorithmException
public static byte[] digest(byte[] source,
String algorithm)
throws NoSuchAlgorithmException
Copyright © 2024. All rights reserved.