public class Md5 extends Object
Constructor and Description |
---|
Md5() |
Modifier and Type | Method and Description |
---|---|
static String |
getMD5(String input) |
static void |
main(String[] args) |
static String |
sign(String text,
String key,
String input_charset)
签名字符串
|
static boolean |
verify(String text,
String sign,
String key,
String input_charset)
签名字符串
|
public static String sign(String text, String key, String input_charset)
text
- 需要签名的字符串key
- 密钥input_charset
- 编码格式public static boolean verify(String text, String sign, String key, String input_charset)
text
- 需要签名的字符串sign
- 签名结果key
- 密钥input_charset
- 编码格式public static void main(String[] args)
Copyright © 2018. All rights reserved.