public class MD5 extends Object
| Constructor and Description |
|---|
MD5() |
| Modifier and Type | Method and Description |
|---|---|
static Mac |
getHmac(byte[] keyBytes,
String algorithm) |
static Mac |
getHMACMD5(byte[] key) |
static Mac |
getHMACSHA1(byte[] key) |
static MessageDigest |
getMD5() |
static byte[] |
hmac_md5(byte[] text,
byte[] key) |
static byte[] |
hmac_md5(byte[] text,
int toff,
int tlen,
byte[] key) |
static byte[] |
md5(byte[] text) |
static byte[] |
md5(byte[] text1,
byte[] text2) |
public static Mac getHmac(byte[] keyBytes, String algorithm) throws NoSuchAlgorithmException, InvalidKeyException
public static Mac getHMACMD5(byte[] key) throws InvalidKeyException, NoSuchAlgorithmException
public static Mac getHMACSHA1(byte[] key) throws InvalidKeyException, NoSuchAlgorithmException
public static MessageDigest getMD5()
public static byte[] md5(byte[] text)
public static byte[] md5(byte[] text1,
byte[] text2)
public static byte[] hmac_md5(byte[] text,
byte[] key)
throws InvalidKeyException,
NoSuchAlgorithmException
public static byte[] hmac_md5(byte[] text,
int toff,
int tlen,
byte[] key)
throws InvalidKeyException,
NoSuchAlgorithmException
Copyright © 2017. All rights reserved.