Skip to content
/ Base64 Public
forked from ekscrypto/Base64

Objective-C Base64 Additions for NSData and NSString

Notifications You must be signed in to change notification settings

wving5/Base64

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CI Status

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

Usage

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

  • Encoding: Approximately 4 to 5 times faster than using the equivalent SecTransform.
  • Encoding: 30% faster than https:/l4u/NSData-Base64
  • Decoding: 5% faster than using the equivalent SecTransform.
  • Decoding: 5% faster than https:/l4u/NSData-Base64

Requirements

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

Implementation

Licensing

  • Public Domain

About

Objective-C Base64 Additions for NSData and NSString

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 97.0%
  • Ruby 3.0%