hscuid: Collision-resistant IDs

[ bsd3, library, program, web ] [ Propose Tags ]

See README (link below).


[Skip to Readme]
Versions [faq] 1.0.0, 1.1.0, 1.2.0.0, 1.2.0.1
Dependencies base (>=4.6 && <5), formatting (>=6.2), hostname (>=1.0), random (>=1.0), text (>=1.2), time (>=1.4), transformers (>=0.4), unix (>=2.6), Win32 (>=2.3) [details]
License BSD-3-Clause
Author Daniel Buckmaster
Maintainer dan.buckmaster@gmail.com
Category Web
Home page https://github.com/eightyeight/hscuid
Uploaded by DanielBuckmaster at Sun Jun 21 04:49:53 UTC 2015
Distributions NixOS:1.2.0.1
Downloads 1920 total (38 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs uploaded by user
Build status unknown [no reports yet]

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees


Readme for hscuid-1.2.0.0

[back to package description]

hscuid Build Status

A Haskell port of the JavaScript library for collision-resistant identifiers. To install, cabal install hscuid.

What is a CUID?

CUIDs are short random strings designed so that you can generate a lot of them over many different machines and not get collisions. They are designed to be usable in many situations, such as HTML element IDs. You can read more about them at usecuid.org.

How do I use this library?

>>> import Web.Cuid (newCuid, newSlug)
>>> newCuid
"cib3c3tcu0000zwowx9ho2gh4"
>>> newSlug
"y900001wmf"