serpro/Android-PHP-Encrypt-Decrypt

Strange chars

Closed this issue · 7 comments

hi,
i still have strange ?? characters in Java when decrypting.

Hi @Niksac can you give me an example of string where that happen? also is it from PHP to Java or the other way around?

Thanks for letting me know

Hi,

i encrypt with php and decrypt with java.
$mcrypt = new MCrypt();
return $mcrypt->encrypt("http://AAAAAAAAAAA/json/GAAPPID");

and
MCrypt mcrypt = new MCrypt();
url = new String( mcrypt.decrypt( url ) );

which returns 06-07 13:48:47.071: http://AAAAAAAAAAA/json/GAAPPID��

I've the same problem. Any solution?

I've been unable to work on it for few weeks.. I'll try to get it sorted later today.

@Niksac @Cromir can you test branch issue-3 ( https://github.com/SeRPRo/Android-PHP-Encrypt-Decrypt/tree/issue-3 ) and let me know if it works now? Thanks

@serpro looks like you fixed it.
thank you!

@Niksac I'm glad it worked for you 👍 . I will close the issue now. If you find any other issue, please, report it :)