This is a good use case for Objective C categories. For Base64 encoding: #import <Foundation/NSString.h> @interface NSString (NSStringAdditions) + (NSString *) base64StringFromData:(NSData *)data length:(int)length; @end ------------------------------------------- #import "NSStringAdditions.h" static char base64EncodingTable[64] = { 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M',
{{#tags}}- {{label}}
{{/tags}}