navneet83 / Cross-platform-AES-encryption

Basic cross platform AES encryption
Apache License 2.0
320 stars 152 forks source link

Broken while Decrypt JSON String. #30

Open ybanezmarjune opened 9 years ago

ybanezmarjune commented 9 years ago

I am using your AES Encryotion for a month, now i have problems when i encrypt my JSON string. It will give us broken JSON String.

Example: {"id": 123, "name": "chonex"} then convert this to AES Encryption. Then, i will put this to JSON String again with a RANDOM IV. This will be like this: {"encrypted" : "asdqwrqtreywetusdmg", "randomIV" : "qrqetyers"}. And pass this to my IOS or Android, But when i decrypt this to ios or android platform, it will be broken. The decryted string will be like:' {"id": 123, "name": "chone ' with missing ' x"}'

Please considered commenting this if you have same issue on mine. thanks

AlexHodd commented 6 years ago

Hello, I have the same issue here. The decrypted message in Java is missing the last letter. Did You manage to resolve this problem?

Thanks!

AlexHodd commented 6 years ago

I have resolved this issue by using this update: link.

Thanks @ybanezmarjune !