-(void)btnCLick{
NSArray *endVC = @[@"VC",@"vc",@"viewController@",@"ViewController@", @"VIEWCONTROLLER"];
NSArray *endData = @[@"Data", @"data", @"Model",@"MODEL",@"MO"];
NSArray *endView = @[@"VIEW", @"View", @"view"];
NSArray *endEngine = @[@"Engine",@"engine",@"Manager",@"MA",@"manager",@"Center",@"center"];
NSArray *endCell = @[@"Cell",@"cell",@"CELL"];
NSArray *endDelegate = @[@"Delegate",@"delegate",@"del",@"gate",@"Protocol",@"PROTOCOL",@"procotol"];
NSArray *endTool = @[@"Tool", @"tool", @"Util",@"util",@"helper",@"Helper",@"Browser",@"browser",@"Photo",@"photo",@"LIB",@"lib", @"Image",@"image",@"Button"];
NSArray *ranDomName1 = @[@"ZYH",@"ZYH",@"ZYH",@"ZYH",@"ZYH",@"ZYH",@"SYSTEM",@"COA",@"TOP",@"LEFT",@"MON",@"CON",@"ZZZ",@"KKK",@"OPP",@"AAA",@"BBB",@"LOM",@"CIRCLE",@"PLUS",@"MEE",@"NES",@"MY",@"YMD",@"ALIBABA"];
NSArray *ranDomName2 = @[@"The",@"Fog",@"TR",@"Haode",@"Xitong",@"Lunbotu",@"Shitu",@"Picture",@"Photo",@"Xieyi",@"Text",@"Rich",@"Line",@"Sys",@"Turn",@"Rever",@"Tiaozhuan",@"Control",@"Noname",@"Name",@"Waker",@"Date",@"Weak",@"XML",@"Hob",@"File",@"Function",@"Fanfa",@"Hob",@"COO",@"Program",@"Net",@"Device",@"SheBei",@"Didian",@"People",@"Thing",@"Shijian",@"Shang",@"Shangbao",@"Other",@"Yanse",@"Color",@"Object",@"Animate",@"Dongzuo",@"Word",@"Act",@"Different",@"Plus",@"Sub",@"Age",@"Newer",@"Login",@"Register",@"Huanxiao",@"Length",@"Count",@"Jihuoma",@"Fly",@"Loop",@"Star",@"Get",@"Set",@"Get",@"Set",@"Get",@"Set",@"Get",@"Set",@"Shenhe",@"Read",@"Write",@"Laker",@"Shanghai",@"Some",@"Get",@"Set",@"In",@"This",@"That",@"String",@"Number",@"AAA",@"Main",@"Work",@"Enable",@"Disable",@"Check",@"Ment"];
NSArray *ranDomName3 = @[@"Welcome",@"In" ,@"Order",@"To",@"Get",@"First",@"1",@"2",@"3",@"4",@"5",@"6",@"Request",@"Some",@"Basic",@"Information",@"One",@"Comes",@"Three" ,@"Pieces",@"The",@"Suite",@"Head",@"LLV",@"MMO",@"RPG",@"Game",@"Random",@"Test",@"Length",@"FPS",@"Shumu",@"Tree",@"Heap",@"Value",@"Number",@"Ana",@"Bit",@"Use",@"For",@"Date",@"Shangbao",@"Other",@"Yanse",@"Color",@"Object",@"Button",@"View",@"Image",@"View",@"Load",@"Creat"];
NSArray *ranDomName4 = @[@"Welcome",@"In" ,@"Order",@"To",@"Get",@"First",@"1",@"2",@"3",@"4",@"5",@"6",@"Object",@"Figure",@"Cele",@"Solider",@"Holiday",@"Calcute",@"Mean",@"Wee",@"Probably",@"Gate",@"World",@"Car",@"Rp",@"Age",@"Giving",@"Doing",@"Play",@"Add",@"Vce",@"Change",@"JSON",@"Standar",@"Adavance",@"Country",@"Check",@"SSS",@"Hos",@"Vic",@"Ter",@"Style",@"UI",@"UI",@"Style",@"CSS",@"Script",@"Test",@"Text",@"Tion",@"Animate",@"Button",@"View",@"Image",@"Image",@"Section",@"View",@"Section",@"Load",@"Mon"];
NSArray *str = @[@"static",@"super",@"auto",@"struct" ,@"self",@"else",@"while",@"switch",@"case",@"break",@"default",@"continue",@"return"];
NSMutableArray *muarr = [NSMutableArray array];
[muarr addObjectsFromArray:endVC];
[muarr addObjectsFromArray:endData];
[muarr addObjectsFromArray:endView];
[muarr addObjectsFromArray:endEngine];
[muarr addObjectsFromArray:endCell];
[muarr addObjectsFromArray:endDelegate];
[muarr addObjectsFromArray:endTool];
[muarr addObjectsFromArray:ranDomName1];
[muarr addObjectsFromArray:ranDomName2];
[muarr addObjectsFromArray:ranDomName3];
[muarr addObjectsFromArray:ranDomName4];
[muarr addObjectsFromArray:str];
NSArray *arr = @[@"a",@"b",@"c",@"d",@"e",@"f",@"g",@"h",@"i",@"j",@"k",@"l",@"m",@"n",@"o",@"p",@"q",@"r",@"s",@"t",@"u",@"v",@"w",@"x",@"y",@"z"];
NSMutableArray *finalArr = [NSMutableArray array];
for (int i = 0 ; i < 200; i++) {
NSString *str = @"";
for (int j = 0; j < 10; j ++) {
int r = arc4random() % [arr count];
NSString *litlestr = [arr objectAtIndex:r];
str = [NSString stringWithFormat:@"%@%@",str,litlestr];
}
__block BOOL have = NO;
[muarr enumerateObjectsUsingBlock:^(NSString *obj, NSUInteger idx, BOOL * _Nonnull stop) {
if ([str containsString:obj]) {
have = YES;
*stop = YES;
}
}];
if (have == NO) {
[finalArr enumerateObjectsUsingBlock:^(NSString *obj, NSUInteger idx, BOOL * _Nonnull stop) {
if ([str containsString:obj]) {
have = YES;
*stop = YES;
}
}];
}
if (have == NO) {
[finalArr addObject:str];
}
}
NSString *finalString = [finalArr componentsJoinedByString:@","];
DLog(@"finalString -- %@",finalString);
}
iOS - 混淆代码单词库
最后编辑于 :
©著作权归作者所有,转载或内容合作请联系作者
- 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
- 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
- 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...