Rectangle 27 0

In fact I've read that code and tried it, but unfortunately it does part of the job. Although it's the hard part but I've decided to post this question in case there is a complete solution. and what this code doesn't do is padding the resulted string with = if it needs to to still be able to be processed by another standard libraries.

objective c - How to encode NSString with base32 encoding? - Stack Ove...

objective-c cocoa nsstring
Rectangle 27 0

+ (NSData *) dataWithBase32String:(NSString *)base32;
- (NSString *) base32String;

Do these methods exist in the Apple frameworks? They do exist in some third party extensions, see other answers, if you have another pre-packaged solution can you post a reference?

A quick google search reveals that CocoaDev has nice implementations of both of these methods. cocoadev.com/index.pl?NSDataCategory (it was also mentioned in the first answer)

objective c - How to encode NSString with base32 encoding? - Stack Ove...

objective-c cocoa nsstring
Rectangle 27 0

It is an "interesting" coding style, but that style makes it easy to see where to add the padding you are after.

objective c - How to encode NSString with base32 encoding? - Stack Ove...

objective-c cocoa nsstring