public interface PasswordStoredEncryptApi
| 限定符和类型 | 方法和说明 |
|---|---|
Boolean |
checkPassword(String encryptBefore,
String encryptAfter)
校验密码加密前和加密后是否一致,多用于判断用户输入密码是否正确
|
Boolean |
checkPasswordWithSalt(String encryptBefore,
String passwordSalt,
String encryptAfter)
校验密码,通过密码 + 盐的方式
|
String |
encrypt(String originPassword)
加密密码
|
SaltedEncryptResult |
encryptWithSalt(String originPassword)
加密密码,通过密码 + 盐的方式
|
String encrypt(String originPassword)
originPassword - 密码明文,待加密的密码SaltedEncryptResult encryptWithSalt(String originPassword)
originPassword - 密码明文,待加密的密码Boolean checkPassword(String encryptBefore, String encryptAfter)
encryptBefore - 密码明文Copyright © 2024. All rights reserved.