navneet83 / Cross-platform-AES-encryption

Basic cross platform AES encryption
Apache License 2.0
317 stars 153 forks source link

Unable to decrypt my encrypted data. #65

Open khsalman opened 4 years ago

khsalman commented 4 years ago

Hello ! I am trying to encrypt and decrypt my code file. I am able to encrypt it. but when I went to decrypt it it gives me strange Chinese text as well. though most of the data remains same but still dont know from where i am getting this Chinese text which makes my program to return nil.

khsalman commented 4 years ago

I am using NSUTF16StringEncoding as NSUTF8StringEncoding is not working and in decryption it gives me null. but with NSUTF16StringEncoding it is working but with one flaw that I am also recieving a chinese text in my along with my original text.

rahulbbit commented 4 years ago

@khsalman , were you able to find the solution for this?