I've tested $custom_iv = 'string leng is 16';
String input and string decrypt sometime different.
Help me please!

Comments

dp541’s picture

Ok!
The problems is $custom_iv ='24 string length' ;

Right?

easyfit’s picture

I've just checked the code in an older version quickly, and aes_decrypt expects a custom IV to be base64 encoded. So maybe you can try doing: $custom_iv = base64_encode("24 string length");

I'm not sure that it would matter though, I haven't tested that very much and I don't know much about the underlying encryption either, so you're pretty much on your own here. Let me know if you can verify any bugs.

dp541’s picture

Thanks you, i'm checking this!

easyfit’s picture

Status: Active » Closed (cannot reproduce)