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

Improve javax.crypto.BadPaddingException messages

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b134
    • CPU:
      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

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

                  Dates

                  Due:
                  Created:
                  Updated:
                  Resolved: