Latest 1.0.1
Homepage https://github.com/kishikawakatsumi/UUIDShortener
License MIT
Platforms ios 5.0, requires ARC
Authors

UUID Shortener License MIT

Version
Platform
Build Status
Analytics

Convert UUID 32-character hex string into a Base32 short string and back.

Usage

Generate new UUID

/* Generate UUID */
NSUUID *UUID = [NSUUID UUID];
NSString *UUIDString = UUID.UUIDString;
NSLog(@"Original UUID:t%@", UUIDString);
// => Original UUID:    40256F2F-3211-49CD-BC1F-DD5197D2F0F9

Compressing UUID

/* Shorten UUID string */
NSString *shortUUIDString = UUID.shortUUIDString;
NSLog(@"Short UUID:t%@", shortUUIDString);
// => Short UUID:       IASW6LZSCFE43PA73VIZPUXQ7E

Restore original UUID from compact representaion

/* Restore UUID string from short string */
NSString *restoredString = [NSUUID UUIDStringFromShortUUIDString:shortUUIDString];
NSLog(@"Restored UUID:t%@", restoredString);
// => Restored UUID:    40256F2F-3211-49CD-BC1F-DD5197D2F0F9

Installation

CocoaPods

pod 'UUIDShortener'

Manual Install

  • Copy files in Lib (UUIDShortener.h and UUIDShortener.m) to your project.

License

UUID Shortener is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "UUIDShortener",
    "version": "1.0.1",
    "summary": "Convert UUID 32-character hex string into a Base32 short string and back.",
    "homepage": "https://github.com/kishikawakatsumi/UUIDShortener",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "kishikawakatsumi": "[email protected]"
    },
    "source": {
        "git": "https://github.com/kishikawakatsumi/UUIDShortener.git",
        "tag": "v1.0.1"
    },
    "platforms": {
        "ios": "5.0"
    },
    "source_files": "Lib/*",
    "requires_arc": true
}

Pin It on Pinterest

Share This