in reply to Encrypt using AES(block size 128-bit) in CBC

I assume you are taking into account the newlines in the input string?

  • Comment on Re: Encrypt using AES(block size 128-bit) in CBC

Replies are listed 'Best First'.
Re^2: Encrypt using AES(block size 128-bit) in CBC
by mikemc24 (Novice) on Jun 14, 2015 at 12:16 UTC
    It's what the provider (Sagepay)says should be the result of the encryption. When I decrypt the expected result using my encryption method there is nothing recognisable in the output so I must be doing something wrong somewhere.

      Can you provide a link to your provider's instruction ref the situation? I don't see you doing anything wrong in your use of the modules.

Re^2: Encrypt using AES(block size 128-bit) in CBC
by mikemc24 (Novice) on Jun 14, 2015 at 10:34 UTC
    Yes, It is one row in the query.

      Okay, I see the string is one line now. And I get the same results as you. Why do you think that is wrong? How do you get the other result?