Package 'shortuuid'

Title: Generate and Translate Standard UUIDs
Description: Generate and translate standard UUIDs into shorter - or just different - formats and back. Also implements base58 encoders and decoders.
Authors: David Schoch [aut, cre]
Maintainer: David Schoch <[email protected]>
License: MIT + file LICENSE
Version: 0.0.0.9000
Built: 2024-11-21 04:49:56 UTC
Source: https://github.com/schochastics/shortuuid

Help Index


Convert base58 to uuid

Description

Convert base58 to uuid

Usage

base58_to_uuid(input, alphabet)

Arguments

input

character vector of base58 strings

alphabet

character vector representing an alphabet

Value

character vector of uuids


Convert base58 bitcoin encoded character vector to uuid

Description

Convert base58 bitcoin encoded character vector to uuid

Usage

bitcoin58_to_uuid(input)

Arguments

input

character vector of base58 strings

Value

character vector of uuids


Convert base58 flickr encoded character vector to uuid

Description

Convert base58 flickr encoded character vector to uuid

Usage

flickr58_to_uuid(input)

Arguments

input

character vector of base58 strings

Value

character vector of uuids


Generate a random RFC4122 v4-compliant UUID

Description

Generate a random RFC4122 v4-compliant UUID

Usage

generate_uuid(n = 1)

Arguments

n

number of ids to generate

Value

character vector of uuids


validate if character vector is base58 encoded

Description

validate if character vector is base58 encoded

Usage

is.base58(x, alphabet)

Arguments

x

A character vector

alphabet

character vector representing an alphabet


check if object is of class uuid

Description

check if object is of class uuid

Usage

is.uuid(x)

Arguments

x

A character vector


Convert uuid to base58

Description

Convert uuid to base58

Usage

uuid_to_base58(input, alphabet)

Arguments

input

character vector of uuids

alphabet

character vector representing an alphabet

Value

character vector of base58 encoded uuids


Convert uuid to base58 encoding of bitcoin

Description

Convert uuid to base58 encoding of bitcoin

Usage

uuid_to_bitcoin58(input)

Arguments

input

character vector of uuids

Value

character vector of base58 encoded uuids


Convert uuid to base58 encoding of flickr

Description

Convert uuid to base58 encoding of flickr

Usage

uuid_to_flickr58(input)

Arguments

input

character vector of uuids

Value

character vector of base58 encoded uuids


validate if a string is a uuid

Description

validate if a string is a uuid

Usage

validate.uuid(x)

Arguments

x

A character vector