• Stars
    star
    296
  • Rank 136,283 (Top 3 %)
  • Language
    Dart
  • License
    MIT License
  • Created almost 12 years ago
  • Updated 9 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Generate RFC4122(v1,v4,v5,v6,v7,v8) UUIDs

uuid

Version 4.0.x is a complete redesign of the underlying setup, but tries to be API compatible or similar to 3.x.

UuidValue is still Experimental and the API for it is in flux, please pay attention to changelogs and versions.

Build Status

Simple, fast generation of RFC4122 UUIDs.

Features:

  • Generate RFC4122 version 1, version 4, or version 5 UUIDs
  • Supports draft version 6, version 7, and version 8
  • Runs in web, server, and flutter
  • Cryptographically strong random number generation on all platforms
    • Defaults to non-crypto generator, see UuidUtil for cryptoRNG
  • Documentation

Getting Started

Instructions

  1. Open a command line and cd to your projects root folder
  2. In your pubspec, add an entry for dart-uuid to your dependencies (example below)
  3. pub install
  4. If you wish to run tests, go into packages/dart-uuid/ and run 'dart test/uuid_test.dart'

Pubspec

There are 2 options. Directly from git, or from pub.dartlang.org

pub.dartlang.org: (you can use 'any' instead of a version if you just want the latest always)

dependencies:
  uuid: ^4.0.0-beta1
import 'package:uuid/uuid.dart';

var uuid = Uuid();

Then create some ids ...

// Generate a v1 (time-based) id
uuid.v1(); // -> '6c84fb90-12c4-11e1-840d-7b25c5ee775a'

// Generate a v4 (random) id
uuid.v4(); // -> '110ec58a-a0f2-4ac4-8393-c866d813b8d1'

// Generate a v5 (namespace-name-sha1-based) id
uuid.v5(Uuid.NAMESPACE_URL, 'www.google.com'); // -> 'c74a196f-f19d-5ea9-bffd-a2742432fc9c'

Documentation

For documentation, please visit the Documentation page. Examples are included for most functions and classes.

For more complex examples and other usages, please look at the tests.

Release notes

See CHANGELOG

More Repositories

1

dart-otp

RFC6238 Time-Based One-Time Password / Google Authenticator Library
Dart
92
star
2

gw2re

A collection of various tools and work done by the community to reverse engineer the Guild Wars 2 DAT files and the custom formats contained within.
C++
25
star
3

fukiya

Simple framework for making dart server applications easier to write.
Dart
24
star
4

NoSQL-Comparison

A comparison of various NoSQL database solutions.
15
star
5

atom-language-dart

Dart language support for Atom editor.
CoffeeScript
13
star
6

discgolf

Disc Golf Stuff
HTML
11
star
7

dart-base32

Base32 Encoder and Decoder for Dart
Dart
8
star
8

formler

A form parser for Dart.
Dart
7
star
9

wine-builder

Container to build multi-architecture wine builds
Dockerfile
5
star
10

udfhd

A tool to create cross-platform UDF drives.
JavaScript
5
star
11

stable-diffusion-optimized

An optimized version of the scripts I found for Windows, with modifications to make them work on linux.
Python
4
star
12

csrd

Repo for Cypher System Reference Document with better formatting.
HTML
3
star
13

docker-csgo

Docker container for a CSGO Server
3
star
14

markdowndeep-wp7

MarkdownDeep Library fixed for WP7. MarkdownDeep is released under the Apache 2.0 License, and as such, this project is under the same license. http://www.toptensoftware.com/markdowndeep/license
C#
3
star
15

peon

Simple Task Runner in Dart
Dart
2
star
16

daegalus.github.com

My tech blog
JavaScript
1
star
17

bifrost

Easy way to store secrets in the cloud. Cloud provider agnostic as long as there is a plugin written for that provider.
Go
1
star
18

laney

Golang queue, priority queue, stack, and deque implementation
Go
1
star