serpro / Android-PHP-Encrypt-Decrypt

Encrypt / Decrypt Between Android and PHP and vice-versa
155 stars 74 forks source link

Strange chars #3

Closed Niksac closed 11 years ago

Niksac commented 11 years ago

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

serpro commented 11 years ago

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

Niksac commented 11 years ago

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��

Cromir commented 11 years ago

I've the same problem. Any solution?

serpro commented 11 years ago

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

serpro commented 11 years ago

@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

Niksac commented 11 years ago

@SeRPRo looks like you fixed it. thank you!

serpro commented 11 years ago

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