Skip to content
/ uuid Public

Command line tool and C++ library for working with UUIDs

Notifications You must be signed in to change notification settings

cieplak/uuid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

uuid

Command line tool and C++ library for working with UUIDs.

Command Line Usage


Usage:

   uuid [-h] [base58] [encode <UUID>] [decode <BASE58>]

Examples:

   # Output usage information
   uuid -h

   # Generate a UUID
   uuid

   # Generate a base58-encoded UUID
   uuid base58
   uuid b58

   # Convert a UUID to a base58-encoded UUID
   uuid encode 42cc29d0-4f99-4d4f-841f-af1052a0678f

   # Convert a base58-encoded UUID to a UUID
   uuid decode 6yMBfeG7aghLQAzzX1JgZk

C++ Library Interface

namespace UUID {

    typedef boost::uuids::uuid uuid;

    uuid         parse(std::string sid);

    std::string  serialize(uuid id);

    uuid         base58_decode(std::string encoded);

    std::string  base58_encode(uuid id);

    uuid         generate();

    std::string  generate_string();

    std::string  generate_base58();

}

Building and Testing

Built and tested on FreeBSD with Clang, Boost and BSD Make.

$ make tests
$ make

About

Command line tool and C++ library for working with UUIDs

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published