Uploaded image for project: 'FtpServer'
  1. FtpServer
  2. FTPSERVER-456

Md5PasswordEncryptor

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 1.0.6
    • 1.0.6
    • Core
    • None

    Description

      Md5PasswordEncryptor
      the password is endless loop

      /**

      • Hashes the password using MD5
        */
        public String encrypt(String password) { return EncryptUtils.encryptMD5(password); }

      /**

      • {@inheritDoc}

        */
        public boolean matches(String passwordToCheck, String storedPassword) {
        if(storedPassword == null)

        { throw new NullPointerException("storedPassword can not be null"); }

        if(passwordToCheck == null)

        { throw new NullPointerException("passwordToCheck can not be null"); }

      return encrypt(passwordToCheck).equalsIgnoreCase(storedPassword);
      }

      Attachments

        Activity

          People

            Unassigned Unassigned
            jason_zhang jason
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: