Interface Encryption

  • All Known Implementing Classes:
    BasicEncryption

    public interface Encryption
    Interface describing the password encryption service.
    • Method Detail

      • encryptPassword

        String encryptPassword​(String plain)
        Encrypt a password.
        Parameters:
        plain - the password in plain format.
        Returns:
        the encrypted password format.
      • checkPassword

        boolean checkPassword​(String input,
                              String password)
        Check password.
        Parameters:
        input - password provided in plain format.
        password - the encrypted format to compare with.
        Returns:
        true if the password match, false else.