Skip to content
An easy-to-use category for `NSData` and `NSString` to encode data in Base64 andBase32.
Objective-C
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
CBHEncodingKit.xcodeproj
CBHEncodingKit
CBHEncodingKitTests
.gitattributes
.gitignore
CBHEncodingKit.podspec
LICENSE
README.md

README.md

CBHEncodingKit

release pod licence coverage

An easy to use category for NSData and NSString to encode data.

Supports:

  • Base32
  • Base64

Use

CBHEncodingKit extends NSData and NSString with a category; adding methods for several encoding types.

Examples:

Encode NSData using Base64:

NSData *data = /* some data */
NSString *base64 = [data encodeBase64];

Decode NSData encoded in Base64:

NSString *base64 = /* some base64 encoded string */
NSData *data = [base64 decodeBase64];

Encode NSString using Base64:

NSString *string = @"some string"
NSString *base64 = [string encodeBase64];

Decode NSString encoded in Base64:

NSString *base64 = /* some base64 encoded string */
NSString *string = [NSString stringByDecodingBase64String];

Licence

CBHEncodingKit is available under the ISC license.

You can’t perform that action at this time.