uuid_type 0.7.0-dev uuid_type: ^0.7.0-dev copied to clipboard
UUID type, parser and generators. Supported versions are: v1, v4, v5
UUID type for Dart 2 #
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
- ✅ Implements
Comparable
for UUID comparison and lexicographical sorting - ✅ Overrides
hashCode
and==
operator for usage asMap
keys - ✅ Runs on Dart VM and in browser
RFC4122 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 #
- Add an entry in your
pubspec.yaml
foruuid_type
dependencies:
uuid_type: ^0.6.0
- Run
pub get
(flutter packages get
for Flutter) - Import
import 'package:uuid_type/uuid_type.dart';
Usage #
API #
[TBD]
Examples #
[TBD]