📄 ipasswordencrypter.java
字号:
/* */package net.java.workeffort.infrastructure.encrypt;/** * Interface for password encryption. * <p> * The password is stored in the database and we dont want it stored as plain * text. * @author Antony Joseph */public interface IPasswordEncrypter { /** * @param password the password * @return the encrypted password */ String encryptPassword(String password); /** * Validates the password against the encrypted password. * @param password the password entered by user * @param encryptedPassword the encrypted password * @return whether password is valid or not */ boolean isPasswordValid(String password, String encryptedPassword);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -