public class MessageDigests extends Object
| 构造器和说明 |
|---|
MessageDigests() |
| 限定符和类型 | 方法和说明 |
|---|---|
static byte[] |
digest(String algorithm,
byte[] source) |
static byte[] |
digest(String algorithm,
byte[] source,
byte[] salt) |
static byte[] |
digest(String algorithm,
byte[] source,
byte[] salt,
int iterations) |
static byte[] |
digest(String algorithm,
byte[] source,
int iterations) |
static byte[] |
digest(String algorithm,
byte[] source,
int offset,
int length) |
static byte[] |
digest(String algorithm,
InputStream inputStream) |
static byte[] |
digest(String algorithm,
String source) |
static String |
getDigestHexString(String algorithm,
byte[] source) |
static String |
getDigestHexString(String algorithm,
byte[] source,
int offset,
int length) |
static String |
getDigestHexString(String algorithm,
InputStream inputStream) |
static String |
getDigestHexString(String algorithm,
String source) |
static String |
md5(byte[] source) |
static String |
md5(byte[] source,
int offset,
int length) |
static String |
md5(InputStream inputStream) |
static String |
md5(String source) |
static MessageDigest |
newDigest(String algorithm) |
public static String md5(InputStream inputStream)
public static String md5(byte[] source)
public static String md5(byte[] source, int offset, int length)
public static String getDigestHexString(String algorithm, InputStream inputStream)
public static String getDigestHexString(String algorithm, byte[] source, int offset, int length)
public static byte[] digest(String algorithm, InputStream inputStream)
public static byte[] digest(String algorithm, byte[] source)
public static byte[] digest(String algorithm, byte[] source, byte[] salt)
public static byte[] digest(String algorithm, byte[] source, int iterations)
public static byte[] digest(String algorithm, byte[] source, byte[] salt, int iterations)
public static byte[] digest(String algorithm, byte[] source, int offset, int length)
public static MessageDigest newDigest(String algorithm)
Copyright © 2021. All rights reserved.