Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8150530

Improve javax.crypto.BadPaddingException messages

    XMLWordPrintable

Details

    • b134
    • generic

    Backports

      Description

        "javax.crypto.BadPaddingException: Given final block not properly padded" is a vague message.

        more often than not, a bad key or password is responsible for the exception. We should hint at this in the exception message.

        See also : http://stackoverflow.com/questions/8049872/given-final-block-not-properly-padded

        Attachments

          Issue Links

            Activity

              People

                coffeys Sean Coffey
                coffeys Sean Coffey
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: