public class SaltUtil extends Object
| Constructor and Description |
|---|
SaltUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
generateSalt()
生成32位随机盐
|
static String |
getSalt(String salt,
JwtProperties jwtProperties)
加工盐值
|
static String |
getSalt(String secret,
String salt)
盐值包装
|
public static String getSalt(String secret, String salt)
secret - 配置文件中配置的附加盐值salt - 数据库中保存的盐值public static String generateSalt()
public static String getSalt(String salt, JwtProperties jwtProperties)
salt - jwtProperties - Copyright © 2019. All rights reserved.