public class PasswordUtils extends Object
| Constructor and Description |
|---|
PasswordUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
checkHash(String password,
String hashCode)
判断密码是否正确
|
static String |
generateHash(String password)
将原始密码加盐(salt)后进行hash,生成密码的Hash值
|
Copyright © 2019. All rights reserved.