Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

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.

About

An easy-to-use category for `NSData` and `NSString` to encode data in Base64 andBase32.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published