in reply to Regarding CRYPT::CBC header issue

What is your ciphertext and where do you add it in your code?

The error message is raised from the ->crypt method call. You don't show that call.

Please go back and rewrite your code to a small, self-contained program that reproduces the problem. Please also show all needed input data to reproduce the problem.

Most likely, the problem is that your ciphertext that you are trying to decode does not begin with a valid header. This is more a data problem than a problem in your program.

Replies are listed 'Best First'.
Re^2: Regarding CRYPT::CBC header issue
by Anonymous Monk on May 11, 2016 at 16:19 UTC

    Thank you very much Corion