Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-3890

PwdEncryptor doesn't work correctly with CRYPT encryption algorithm

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 5.1.2, 5.2.3, 6.0.0 Preview
    • Fix Version/s: 6.0.1 RC
    • Component/s: Application Security
    • Labels:
      None
    • Branch Version/s:
      5.2.x, 5.1.x
    • Backported to Branch:
      Committed
    • Liferay Contributor's Agreement:
      Accept

      Description

      If I have understood correctly following code should produce enc1.equals(enc2) but it doesn't.

      String enc1 = PwdEncryptor.encrypt(PwdEncryptor.TYPE_CRYPT, "test", null);
      String enc2 = PwdEncryptor.encrypt(PwdEncryptor.TYPE_CRYPT, "test", enc1);

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  7 years, 36 weeks, 6 days ago