NSData* decodeData = [[NSData alloc] initWithBase64EncodedString:@"MTIzNDU2" options:0];
NSString* decodeStr = [[NSString alloc] initWithData:decodeData encoding:NSASCIIStringEncoding];
NSLog(@"解密:decodeStr %@",decodeStr);
NSData* originData = [@"123456" dataUsingEncoding:NSASCIIStringEncoding];
NSString* encodeResult = [originData base64EncodedStringWithOptions:NSDataBase64EncodingEndLineWithLineFeed];
NSLog(@"加密:%@",encodeResult);