public class ShiroUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
HASH_ALGORITHM_NAME |
static int |
HASH_ITERATIONS |
| Constructor and Description |
|---|
ShiroUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
encrypt(String password,
String salt)
加密处理(64位字符)
备注:采用自定义的密码加密方式,其原理与SimpleHash一致,
为的是在多个模块间可以使用同一套加密方式,方便共用系统用户。
|
static String |
getIp() |
static String |
getRandomSalt() |
public static final String HASH_ALGORITHM_NAME
public static final int HASH_ITERATIONS
Copyright © 2022. All rights reserved.