Giter Site home page Giter Site logo

uuidshortener's Introduction

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.

uuidshortener's People

Contributors

kishikawakatsumi avatar bitdeli-chef avatar

Stargazers

ITO Manaki (Colk) avatar iMusic avatar FranzeYang avatar  avatar  avatar Shadow Walker avatar Nao Ohta avatar Bryant He avatar  avatar  avatar Anton Lookin avatar Artem Kandaurov avatar Lukáš Petr avatar Yu SERIZAWA avatar wgywgy avatar yoshiki inoue avatar Rasmus Høhndorf Hummelmose avatar Michael Raber avatar Kun Chong avatar Yoshinori Imajo avatar Ryoji Miyazato avatar  avatar 朱正伟 avatar zhengzeqin avatar lipwit avatar Chiu Hoi Po avatar fanxiangyang avatar Liwei Dong avatar Angus H. avatar Prioregroup.com avatar Mars__zhang avatar  avatar  avatar  avatar terry.hug avatar Xunqf avatar Ken avatar  avatar chikamim avatar Viktor Bespalov avatar Adrian Coroian avatar Red Davis avatar victor christensen avatar Marco Ferreira avatar Alexis Gallagher avatar choipd avatar Shingo Hiraya avatar  avatar littlefan avatar terry.pang avatar flypigz avatar Ryan avatar RYUJI WATANABE avatar Roman avatar Ryota avatar mono — Masayuki Ono avatar Yuichi Okada avatar Blake Schwendiman avatar Takuma Shimizu avatar Joon Lee avatar Adam Michela avatar Sudhir Kumar avatar Kei Ishida avatar Yasuhiro Inami avatar  avatar C. Bess avatar  avatar Lucas Medeiros avatar  avatar

Watchers

 avatar mayulu avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.