TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Jun 2015 |
Maintained by Tong Xiang.
This is an Objective-C library that converts numbers into human-readable word combinations.
Include the following line within your podfile:
pod 'Hashery', :git => 'https://github.com/DoSomething/hashery.objc.git'
Creates an array of arrays. The number of arrays within the array becomes the number of words in the hash string. Each array needs to have the same number of words.
NSArray *wordArray = @[
@[@"big", @"tall", @"short", @"husky"],
@[@"orange", @"grey", @"purple", @"vermilion"],
@[@"monkey", @"sloth", @"giraffe", @"dolphin"]
];
Instantiates a hashery object.
DSOHashery *hashery = [[DSOHashery alloc] init];
Sets the hashery object to use the wordArray.
[hashery setWordArrayLists:wordArray];
Encodes 13
into a unique string.
[hashery encodeBase10ToUniqueString:13];
Decodes a unique string into an integer.
[hashery decodeUniqueStringToBase10:@"bigvermilionsloth"];
hashery.objc is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "hashery.objc"
Tong Xiang, [email protected]
hashery.objc is available under the MIT license. See the LICENSE file for more info.