Skip to content

Instantly share code, notes, and snippets.

@CognitiveDisson
CognitiveDisson / obfuscatedKey
Last active September 14, 2016 15:30 — forked from DevAlloy/uuidForToken
Алгоритм генерации строки, которую хотим спрятать
- (NSString*)hexStringFromString:(NSString*)string
{
const char *utf8 = [string UTF8String];
NSMutableString *result = [NSMutableString new];
for (int i = 0; i < string.length; i++) {
[result appendFormat:@"0x%02X, ", *utf8++ & 0x00FF];
}
return result;
}