I went through websites to find good tricks to send encrypted data to my server. Here is encryption / decryption functions by Jeff and Base 64 functions by Cyrus Include following headers: #import "NSData-AES.h" #import "Base64.h" Implementation: NSString *password = @"mypassword"; NSString *str = @"hello world 123"; // 1) Encrypt NSLog(@"encrypting string = %@",str); NSData *data = [str dataUsi