ERROR: Caused by: javax.crypto.IllegalBlockSizeException: Input length must be multiple of 8 when decrypting with padded cipher

Hello,

I want to encrypt my password. I’m doing that by encrypting my password with Help → Encrypt Text, then using this in my Excel Sheet. I’m storing that value in my Global.Profile and use the Global.Variable in my Testsuite setUpTestCase function.

I’m getting this error message: Caused by: javax.crypto.IllegalBlockSizeException: Input length must be multiple of 8 when decrypting with padded cipher.

I’m assuming that there is a error because the values from excel are parsed in to String. Is this the cause and when yes, is there another possibility to encrypt my variables ?

Hi,

I found the solution for a similar problem here: [Solved] javax.crypto.IllegalBlockSizeException: Input length must be multiple of 16 when decrypting with padded cipher | Facing Issues On IT. Can you please try?

Where should I set this up ? I’m using the global variables through my SetUpTestCase function and trying to encrypt the password there