PDC Exception about Cipher

We received exception: Input length must be multiple of 8 when decrypting with padded cipher in PDC for our Production environment but from Application point, there’s no such configurations made. Couldn’t get much of the details about the issue. Any useful information related to the exception is more helpful.

More information on alert from PDC:

Top Level Exception Class

javax.crypto.IllegalBlockSizeException

Logger

com.pega.pegarules.session.internal.authorization.ContextMap

@Kishore Sanagapalli This error means Pega is trying to decrypt a stored encrypted value that does not match the Production cipher setup, so the ciphertext bytes are not a valid multiple of 8 (typical for DES/3DES) and Java throws IllegalBlockSizeException. Fix it by ensuring the Production cipher key/algorithm (the system’s cipher/crypto settings used by Pega) is the one that should be used in Prod, then re-save the specific records that store encrypted data in Prod (for example authentication/connector credentials) so Pega re-encrypts them with the Prod cipher. Once those encrypted values are regenerated in Production with the correct cipher, the authorization ContextMap decrypt step stops failing and the PDC alert clears.

Thanks for your reply. But we have not made any changes in the application so far and this is flagged just one time with no reference of rule. Will monitor the system and apply changes eventually if flagged again.