Comments (3)
Same. The fix for #29 worked but when I'm sending data from iOS 13 (fixed) to iOS 11 (pre-fixed) version, iOS 11 (the pre-fixed version) crashes.
Breakpointing, I can see that status == kCCSuccess, but the returned data is (null)
from cross-platform-aes.
I managed to fix it by doing the alternative approach here.
use this function and replace NSString *hash=[out debugDescription];
with NSString *hash = [self hex: out];
-(NSString*)hex:(NSData*)data{
NSMutableData *result = [NSMutableData dataWithLength:2*data.length];
unsigned const char* src = data.bytes;
unsigned char* dst = result.mutableBytes;
unsigned char t0, t1;
for (int i = 0; i < data.length; i ++ ) {
t0 = src[i] >> 4;
t1 = src[i] & 0x0F;
dst[i*2] = 48 + t0 + (t0 / 10) * 39;
dst[i*2+1] = 48 + t1 + (t1 / 10) * 39;
}
return [[NSString alloc] initWithData:result encoding:NSASCIIStringEncoding];
}
I'm still on testing phase but the results so far looks positive.
from cross-platform-aes.
This issue has been fixed
from cross-platform-aes.
Related Issues (20)
- IOS Failes to decrypt VB.net String HOT 5
- C# solution also required HOT 1
- Decryption is not working with swift IOS HOT 3
- Decryption is not working properly HOT 1
- got that Vulnerabilities that shown in figure ..
- Encryption failing for cross-platform use. HOT 5
- Decryption not working on IOS 13 HOT 16
- iOS 13 Decryption failure HOT 4
- Cryptojs lib not working Angular8 HOT 1
- BadPaddingException HOT 1
- Need this as a Plugin for flutter
- Not able to implement in android.
- How to use it in React-Native ? HOT 1
- is Cross-Plafform-AES using CryptoJS?
- UNITY Platform not supported
- CC_MD5 is deprecated
- bad base-64 illegalargumentexception- Not Decrypt When message was long HOT 1
- last block incomplete in decryption
- Cryptlib not working for flutter IOS
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cross-platform-aes.