Copyright | (c) 2008-2009 Antoine Latter |
---|---|
License | BSD-style |
Maintainer | aslatter@gmail.com |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell98 |
This module implements Version 5 UUIDs as specified in RFC 4122.
These UUIDs identify an object within a namespace, and are deterministic.
The namespace is identified by a UUID. Several sample namespaces are enclosed.
- generateNamed :: UUID -> [Word8] -> UUID
- namespaceDNS :: UUID
- namespaceURL :: UUID
- namespaceOID :: UUID
- namespaceX500 :: UUID
Documentation
Generate a UUID
within the specified namespace out of the given
object.
Uses a SHA1 hash. The UUID is built from first 128 bits of the hash of the namespace UUID and the name (as a series of Word8).
The namespace for DNS addresses
The namespace for URLs
The namespace for ISO OIDs
The namespace for X.500 DNs