uuid_type 0.6.0-dev copy "uuid_type: ^0.6.0-dev" to clipboard
uuid_type: ^0.6.0-dev copied to clipboard

outdatedDart 1 only

UUID type, parser and generators. Supported versions are: v1, v4, v5

UUID type for Dart 2 [WIP] #

Build Status

Not yet tested for production use!

This package provides implementation of Universally Unique Identifier (UUID). Supported both creation and parsing of UUIDs.

Features:

  • ✅ Creates UUID from string and byte-array representations
  • ✅ Provides access to variant, version and byte representation of UUID
  • ❌ Generates RFC4122 version 1 UUIDs
  • ✅ Generates RFC4122 version 4 UUIDs
  • ✅ Generates RFC4122 version 5 UUIDs (SHA-1 only)
  • ✅ Implements Comparable for UUID comparison and lexicographical sorting
  • ✅ Overrides hashCode and == operator for usage as Map keys
  • ✅ Runs on Dart VM and in browser

UUID Version support:

  • ❌ v1, based on timestamp and MAC address (RFC 4122) [WIP]
  • ❌ v2, based on timestamp, MAC address and POSIX UID/GID (DCE 1.1) Not planned
  • ❌ v3, based on MD5 hashing (RFC 4122) Not planned
  • ✅ v4, based on random numbers (RFC 4122)
  • ✅ v5, based on SHA-1 hashing (RFC 4122)

Requirements #

  • Dart 2 (tested with >=2.0.0-dev.50.0). Should also work with Dart 1.24, but not tested.
  • crypto package

Getting Started #

Installation #

  1. Add an entry in your pubspec.yaml for uuid_type
dependencies:
  uuid_type: ^0.6.0
  1. Run pub install

Usage #

API #

[TBD]

Examples #

[TBD]

16
likes
0
pub points
90%
popularity

Publisher

unverified uploader

UUID type, parser and generators. Supported versions are: v1, v4, v5

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

crypto

More

Packages that depend on uuid_type