public class SecureUtil extends Object
| 构造器和说明 |
|---|
SecureUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static boolean |
checkByBcrypt(String str1,
String str2)
通过Bcrypt校验字段是否正确
|
static boolean |
checkByMD5(String str1,
String str2)
通过MD5校验字段是否正确
|
static String |
encoderByBcrypt(String str)
通过Bcrypt加密
|
static String |
encoderByMD5(String str)
通过MD5获取摘要
|
public static String encoderByBcrypt(String str)
str - 需加密字段public static boolean checkByBcrypt(String str1, String str2)
str1 - 需校验字段str2 - 正确字段public static String encoderByMD5(String str) throws Exception
str - 需加密字段ExceptionCopyright © 2022. All rights reserved.