I have AES128 crypted web-services I use the AFHTTPRequestOperationManager and I receive the good response ( the response is crypted string ) When I try to decript the string I look the wrong response This is my code:
NSString *string = [[NSString alloc]initWithData:response encoding:NSUTF8StringEncoding];
NSLog(@"%@",string);
NSString *decodedString = [AES128Util AES128Decrypt:string key:Key];
NSLog(@"%@",decodedString);
The key is good beacause on android work correctly In the first NSLog I read the correctly coded response In the second NSLog I read the NULL string Thanks
Edit: LR1JZEOE8MgbEgyZtbqSAbO5ZL5wYBCpLX0KE4PynsFZiRBJe3lvRRr0CPbf0ufuSga8dG5j6IeDBvbn1iNeLUb7cYIb+caSXZw7t8TgrYA= This is the recovered coded string