Base64

RFC 4648 Base64 implementation in Objective-C ARC.


License
Unlicense
Install
pod try Base64

Documentation

CI Status

Base64 Additions for Objective-C on Mac OS X and iOS

Usage: Cococapods

Add the following line to your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!

target '<Your Target Name>' do
    pod 'Base64'
end

Usage: Raw Files

Open the Xcode project file, and drag MF_Base64Additions.m/.h into your project.

In files where you want to use Base64 encoding/decoding, simply include the header file and use one of the provided NSData or NSString additions.

Example use: #import "MF_Base64Additions.h"

NSString *helloWorld = @"Hello World";
NSString *helloInBase64 = [helloWorld base64String];
NSString *helloDecoded = [NSString stringFromBase64String:helloInBase64];

Performance

Requirements

  • Compile with Automatic Reference Counting
  • Compatible with Mac OSX 10.6+ and iOS 4.0+

Implementation

Licensing

  • Public Domain