TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Dec 2014 |
Maintained by Arthur Ariel Sabintsev.
This is ID.me's Objective-C implementation of the Base32hex (RFC2938 standard) encoder and decoder. Originally, this repository was created by MightyKan, and featured Douglas Crockford's Base32 encoding.
Note: This library should not be mistaken for the rfc4648 data encoding specifications.
pod 'Base32hex'
or manually install it by draggubg (Base32.h
and Base32.m
) into your project and import the header file into any class where you wish to use the Base32 functionality.
To encode a number, for example '1234':
NSLog(@"%@", [Base32 encode:@"1234"]);
which will yield:
16I
To decode a Base32 string, for example 'TOQQG0'
NSLog(@"%@", [Base32 decode:@"TOQQG0"]);
which will yield:
999123456