com.liferay.util.EncryptorException: com.liferay.util.EncryptorException: javax.crypto.IllegalBlockSizeException: Input length must be multiple of 8 when decrypting with padded cipher

liferay.com | 8 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    RE: Re:Unable to impersonate because the string cannot be decrypted - Community Forums | Liferay

    liferay.com | 8 months ago
    com.liferay.util.EncryptorException: com.liferay.util.EncryptorException: javax.crypto.IllegalBlockSizeException: Input length must be multiple of 8 when decrypting with padded cipher

    Root Cause Analysis

    1. javax.crypto.IllegalBlockSizeException

      Input length must be multiple of 8 when decrypting with padded cipher at com.sun.crypto.provider.SunJCE_f.b(DashoA13*..) at com.sun.crypto.provider.SunJCE_f.b(DashoA13*..) at com.sun.crypto.provider.DESCipher.engineDoFinal(DashoA13*..) at javax.crypto.Cipher.doFinal(DashoA13*..)

      at com.liferay.util.Encryptor.decryptUnencodedAsBytes()
    2. Liferay Util Java
      Encryptor.decryptUnencodedAsBytes
      1. com.liferay.util.Encryptor.decryptUnencodedAsBytes(Encryptor.java:130)
      1 frame