Application Server 3  4  5 and 6
  1. Application Server 3 4 5 and 6
  2. JBAS-7094

JaasSecurityDomain fails to decrypt some PBE passwords

    Details

    • Type: Bug Bug
    • Status: Closed Closed (View Workflow)
    • Priority: Major Major
    • Resolution: Done
    • Affects Version/s: JBossAS-5.1.0.GA
    • Fix Version/s: 6.0.0.M1
    • Component/s: Security
    • Security Level: Public (Everyone can see)
    • Labels:
      None
    • Similar Issues:
      Show 9 results 

      Description

      Certain passwords when encrypted with PBE result in a String with leading zeros. These leading zeros are not printed with the String so decrypting the password fails because of invalid number of bytes. An exception is thrown:

      javax.crypto.IllegalBlockSizeException: Input length (with padding) not multiple of 8 bytes

        Issue Links

          Activity

          Hide
          Marcus Moyses
          added a comment -

          Fixed leading zeros problem.

          Show
          Marcus Moyses
          added a comment - Fixed leading zeros problem.

            People

            • Assignee:
              Marcus Moyses
              Reporter:
              Marcus Moyses
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: