You are missing an IV value for your decryption. You need to include this in your Cipher.init
call:
... Cipher.init(Cipher.DECRYPT, someKey, new IvParameterSpec(eightByteValue));
If you omit it from your encryption code, a random IV value will be generated. You will need to store this (retrieved via Cipher.getIV()
) to use in your decryption code.