Latest 0.1.0
Homepage https://github.com/DoSomething/hashery.objc
License MIT
Platforms ios 7.0, requires ARC
Authors

[![CI Status](http://img.shields.io/travis/Tong Xiang/hashery.objc.svg?style=flat)](https://travis-ci.org/Tong Xiang/hashery.objc)
Version
License
Platform

Usage

This is an Objective-C library that converts numbers into human-readable word combinations.

Get the library

Include the following line within your podfile:

pod 'Hashery', :git => 'https://github.com/DoSomething/hashery.objc.git'

How to use it

  • Create sets of words. These are not provided to you by the library.

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"];

Requirements

Installation

hashery.objc is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "hashery.objc"

Author

Tong Xiang, [email protected]

License

hashery.objc is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "hashery.objc",
    "version": "0.1.0",
    "summary": "A library which converts numbers into human-readable word combinations.",
    "description": "                  n#### Use Cases nUseful for generating easy-to-remember unique passcodes. nn#### How to use itnn- Create sets of words. These are not provided to you by the library.nnCreates 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. n```n        NSArray *wordArray = @[n            @[@"big", @"tall", @"short", @"husky"],n            @[@"orange", @"grey", @"purple", @"vermilion"],n            @[@"monkey", @"sloth", @"giraffe", @"dolphin"]n        ];n```nnInstantiates a hashery object. n```n        DSOHashery *hashery = [[DSOHashery alloc] init];n```nnSets the hashery object to use the wordArray. n```n        [hashery setWordArrayLists:wordArray];n```nnEncodes `13` into a unique string. n```    n        [hashery encodeBase10ToUniqueString:13];n```nnDecodes a unique string into an integer. n```    n        [hashery decodeUniqueStringToBase10:@"bigvermilionsloth"];n```n---n",
    "homepage": "https://github.com/DoSomething/hashery.objc",
    "license": "MIT",
    "authors": {
        "Tong Xiang": "[email protected]"
    },
    "source": {
        "git": "https://github.com/DoSomething/hashery.objc.git",
        "tag": "0.1.0"
    },
    "social_media_url": "https://twitter.com/tong_xiang",
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "resource_bundles": {
        "hashery.objc": [
            "Pod/Assets/*.png"
        ]
    },
    "public_header_files": "Pod/Classes/**/*.h"
}

Pin It on Pinterest

Share This