一,工程图。
二,代码。
#import "ViewController.h"
#import "Base64CodeByteFunc.h" @interface ViewController () @end @implementation ViewController - (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib. NSString *passWord = [Base64CodeByteFunc encodePassword:@"123456"];
NSLog(@"----passWord---%@",passWord); }
三,输出。
2015-10-23 10:09:55.693 给密码进行加密[1398:55492] ----passWord---MToyOTM4ND81PjY9