public class EncryptionUtil extends Object
| 构造器和说明 |
|---|
EncryptionUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
addition(String str1,
String str2,
int scale) |
static String |
byteArrayToHexStr(byte[] arr) |
protected static String |
digestStr(String source,
String encode,
String type) |
static String |
division(String str1,
String str2,
int scale) |
static String |
md5(String str) |
static String |
md5(String str,
Integer len) |
static String |
multiplication(String str1,
String str2,
int scale) |
static String |
sha1(String str) |
static String |
sha1(String str,
Integer len) |
static String |
subtraction(String str1,
String str2,
int scale) |
static String |
toFix(String str) |
static String |
toShortCryptoCode(String sourceCode,
Integer shortCodeLength) |
protected static String digestStr(String source, String encode, String type) throws Exception
Exceptionpublic static String byteArrayToHexStr(byte[] arr)
public static String toShortCryptoCode(String sourceCode, Integer shortCodeLength)
public static String subtraction(String str1, String str2, int scale) throws Exception
Exceptionpublic static String multiplication(String str1, String str2, int scale) throws Exception
Exceptionpublic static String division(String str1, String str2, int scale) throws Exception
Exceptionpublic static String addition(String str1, String str2, int scale) throws Exception
ExceptionCopyright © 2019. All rights reserved.