RNCryptor + base64 iOS en PHP-webservice


Probeer eens het volgende:

NSData *encrypted = [MAEncryptDecrypt encrypt:@"Dit is text die wordt ge-encrypt"];
NSString *encoded = [encrypted base64EncodedStringWithOptions:0];

NSString* urlEncoded = CFBridgingRelease(CFURLCreateWithString(kCFAllocatorDefault, encoded, NULL));

HTTPBody = [NSString stringWithFormat:@"%@&q=%@", HTTPBody, urlEncoded];
[url setHTTPBody:[HTTPBody dataUsingEncoding:NSUTF8StringEncoding]];