serpro / Android-PHP-Encrypt-Decrypt

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

Android and PHP both are getting different Encrypted Value. #22

Closed rikithakkar1012 closed 7 years ago

rikithakkar1012 commented 7 years ago

String---> "qwertyuiopasdfghjklzxcvbnm qwertyuiopasdfghjklzxcvbnm qwertyuiopasdfghjklzxcvbnm"

Android Encrypted Value---> "b8eccae23aa47f2b60f664df5353f337cb942c70c8d8f14d123f9b04d29f1fc8e4295c42ea767562e28262f5d6d16180db4b8666032c375202deb446b659f081c8c9c7d463a4b36f5a7a5fea87b6bb6d8a1a428995f279ce6309794b3531dc09"

Php Encrypted Value--->"b8eccae23aa47f2b60f664df5353f337cb942c70c8d8f14d123f9b04d29f1fc8e4295c42ea767562e28262f5d6d16180db4b8666032c375202deb446b659f081c8c9c7d463a4b36f5a7a5fea87b6bb6d"

The problem is php is not giving the entire value, Please have a look at dark characters in encrypted value.

Note: if my String is small then it works fine. The problem only happens if String length exceeds 64 characters.

Thanks.