Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encryption result in ios and android different #4

Open
deceive3w opened this issue Oct 4, 2018 · 3 comments
Open

Encryption result in ios and android different #4

deceive3w opened this issue Oct 4, 2018 · 3 comments

Comments

@deceive3w
Copy link

No description provided.

@deceive3w
Copy link
Author

i solved by changing algorithm aes 128 to 256 in module ios

@georgeben
Copy link

i solved by changing algorithm aes 128 to 256 in module ios

Please @deceive3w How did you do that?

@rajatSingh16
Copy link

rajatSingh16 commented Apr 30, 2020

you have to replace some variables in your NSData+AES.m in module ios like this
kCCKeySizeAES128 --> kCCKeySizeAES256
kCCAlgorithmAES128 --> kCCAlgorithmAES
and the variable below keyPtr --> 32
and with these changes you will have same encryption and decryption result on both ios and android

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants