in reply to Re^4: How to do encryption in perl with aes-128-cbc
in thread How to do encryption in perl with aes-128-cbc

I don't know anything about CryptX, and you seem to be using Crypt::CBC, which has no relation to CryptX. I note that your $iv and $key variables seem to contain hexadecimal digits. The Crypt::CBC documentation indicates that you should use the string without any encoding. If you unpack your hex string into the real bytes, maybe that helps.

I don't know if there is a way to specify initialization vectors of other lengths, but maybe if you read the documentation, you find more information.

Replies are listed 'Best First'.
Re^6: How to do encryption in perl with aes-128-cbc
by saysuri (Initiate) on Aug 30, 2013 at 11:32 UTC
    Thanks for the quick replay. let me check the details and let me see what i can understand and what i can do.

      Thanks for the information.

      I tried tried converting hext o 16 bit string and then used in the code.

      Finally it worked.

      once again thanks for the information.

      you made my day, waiting for this since last 2 days