There are many ways to protect your data, depending on how good your protection is. For very minimal protection against random hackers, you can use the obfuscation string algorithm to obfuscate and de-obfuscate HTML content as NSStrings. Here is an example of this . I have not used this specific code, but I also do not recommend obfuscation as a method if the data is really not very sensitive.
The best solution is to encrypt the HTML content, although this works more and may include some export control issues , depending on where you distribute your application.
You have many options for encryption.
1) , - NSUserDefaults. registerDefaults:, , , , , . PDKeychainBindings . HTML :
NSString* webPageContent =
[[PDKeychainBindings sharedKeychainBindings] valueForKey: @"index.html"];
2) , AES-. , HTML , . , NSString, UIWebView loadHTMLString: baseURL:.
3) , API CommonCrypto . , , HTML .