uuidgen

https://github.com/kanru/uuidgen-el.git

git clone 'git://github.com/kanru/uuidgen-el.git'
7

uuidgen-el

This is a naive implementation of RFC4122 Universally Unique IDentifier generation in elisp. Currently implemented are UUID v1 v3, v4 and v5 generation. The resolution of the time based UUID is microseconds, which is 10 times of the suggested 100-nanosecond resolution, but should be enough for general usage.

APIs

Generate time based UUID string, aka UUIDv1.

Generate UUID string form random numbers, aka UUIDv4.

Generate name based UUID string using MD5 hash algorithm, aka UUIDv3. NS should be a generated UUID or predefined namespaces, uuidgen-ns-dns',uuidgen-ns-url', uuidgen-ns-oid',uuidgen-ns-x500'. NAME is the node name string.

Generate name based UUID string using SHA-1 hash algorithm, aka UUIDv5. NS should be a generated UUID or predefined namespaces, uuidgen-ns-dns',uuidgen-ns-url', uuidgen-ns-oid',uuidgen-ns-x500'. NAME is the node name string.

Return the string representation of a UUID as a URN.

Return UUID string in CID format that is suitable for COM definition. If UUID is nil will generate UUID-4 automatically. You customize `uuidgen-cid-format-string' to change the default format.

Insert UUID string in CID format that is suitable for COM definition. If UUID is nil will generate UUIDv4 automatically. You customize `uuidgen-cid-format-string' to change the default format.

Insert UUIDv4 at point. If TIME-BASED is non-nil, insert UUIDv1 instead.