We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello,
I have a jpg file that was encrypted on a server (with nodejs). When I try to decrypt it (on iOS) with this library it fails with 'Decrypt failed'.
I looked into the code and did some debugging. The actual decrypt works fine but it looks like the conversion to a String fails because it's using NSUTF8StringEncoding. I'm pretty sure there is data in my jpg file that is not compliant with UTF8 encoding (see https://github.com/tectiv3/react-native-aes/blob/master/ios/RCTAes/lib/AesCrypt.m#L115).
May be the string returned should use base64 encoding just like for encrypt.
Thanks for your help.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello,
I have a jpg file that was encrypted on a server (with nodejs). When I try to decrypt it (on iOS) with this library it fails with 'Decrypt failed'.
I looked into the code and did some debugging. The actual decrypt works fine but it looks like the conversion to a String fails because it's using NSUTF8StringEncoding. I'm pretty sure there is data in my jpg file that is not compliant with UTF8 encoding (see https://github.com/tectiv3/react-native-aes/blob/master/ios/RCTAes/lib/AesCrypt.m#L115).
May be the string returned should use base64 encoding just like for encrypt.
Thanks for your help.
The text was updated successfully, but these errors were encountered: