encrypt image resource in iOS Project without change source code.
Based on RNCryptor and CXYRNCryptorTool
- Run CXYRNCryptor.app in Project directory and click + button to add images, and then encrypt.
- choose save directory and encrypt data, including xxxx.cxy files and a plist named with current date.
- the plist in step 2 descibe which picture was transformed to which encrypted file.
- create new folder , rename as Target.bundle or other name you like.
- add encrypted files in steps 2 into Target.bundle.
- add bundle into yout project.
- import
CommonImageManager.h
inappDelegate.h
. - in
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
,
add
[[CommonImageManager sharedInstance] configureBundlesName:@[@"Target", @"Other Name you Like"]];
- run demo to see how to work in iOS project.