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

Improve javax.crypto.BadPaddingException messages

XMLWordPrintable

    • b134
    • generic

        "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

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

                Created:
                Updated:
                Resolved: