Skip to content

Commit

Permalink
Merge pull request #2 from taskcluster/csprng
Browse files Browse the repository at this point in the history
Note that slugids are generated with a csprng
  • Loading branch information
djmitche authored Apr 7, 2017
2 parents 3999798 + 33272dd commit a5279ba
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
slugid - Compressed UUIDs for Node.js
=====================================
<img src="https://tools.taskcluster.net/lib/assets/taskcluster-120.png" />

[![Build Status](https://travis-ci.org/taskcluster/slugid.svg?branch=master)](http://travis-ci.org/taskcluster/slugid)
[![License](https://img.shields.io/badge/license-MIT-orange.svg)](https://github.com/taskcluster/slugid/blob/master/LICENSE)

Expand All @@ -9,6 +10,9 @@ URL-safe base64 slug representation (see [RFC 4648 sec.
5](http://tools.ietf.org/html/rfc4648#section-5)).

Slugs are url-safe base64 encoded v4 uuids, stripped of base64 `=` padding.
They are generated with the [uuid package](https://www.npmjs.com/package/uuid) which
is careful to use a cryptographically strong random number generator on platforms
that make one available.

There are two methods for generating slugs - `slugid.v4()` and `slugid.nice()`.

Expand Down

0 comments on commit a5279ba

Please sign in to comment.