Package tech.mgl.core.utils.security
Class MGL_CryptoUtils
java.lang.Object
tech.mgl.core.utils.security.MGL_CryptoUtils
ClassName: CryptoUtils salt + md5
Rfc2898DeriveBytes.java 差不多
- Author:
- hotpot MGL.TECH
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
MGL_CryptoUtils
public MGL_CryptoUtils()
-
-
Method Details
-
getSalt
获取 Salt- Returns:
- String
-
getHash
获取hash后的密码- Parameters:
password- 密码salt- 盐- Returns:
- String
-
verify
验证密码 hashedPassword 原密码,就是加盐加密的后的密码- Parameters:
password- 新密码salt- 盐- Returns:
- boolean 返回类型
-