Title: | Generate and Translate Standard UUIDs |
Version: | 0.1.0 |
Description: | Generate and translate standard Universally Unique Identifiers (UUIDs) into shorter - or just different - formats and back. Also implements base58 encoders and decoders. |
License: | MIT + file LICENSE |
Encoding: | UTF-8 |
RoxygenNote: | 7.3.2 |
LinkingTo: | Rcpp |
Imports: | Rcpp |
Suggests: | testthat (≥ 3.0.0) |
Config/testthat/edition: | 3 |
NeedsCompilation: | yes |
Packaged: | 2025-07-22 08:48:52 UTC; david |
Author: | David Schoch |
Maintainer: | David Schoch <david@schochastics.net> |
Repository: | CRAN |
Date/Publication: | 2025-07-22 12:10:02 UTC |
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
Examples
generate_uuid(n = 5)
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 |
Value
logical vector indicating if each element is a valid base58 string
check if object is of class uuid
Description
check if object is of class uuid
Usage
is.uuid(x)
Arguments
x |
A character vector |
Value
logical indicating if the input is a valid UUID
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
Examples
uuids <- generate_uuid(5)
uuid_to_bitcoin58(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
Examples
uuids <- generate_uuid(5)
uuid_to_flickr58(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 |
Value
logical indicating if the input is a valid UUID