tinyid-0.1.0.0: A secure URL-friendly string ID generator
Safe HaskellNone
LanguageHaskell2010

Data.TinyID

Synopsis

Documentation

urlSafeAlphabet :: ByteString Source #

A URL-friendly alphabet.

See section 2.3 of RFC3986 for more information.

nextRandomFromAlphabet Source #

Arguments

:: ByteString

Alphabet

-> Int

Length of ID

-> IO ByteString 

Generates a (cryptographically) secure ID with a specified alphabet at a given length from system entropy.

nextRandom Source #

Arguments

:: Int

Length of ID

-> IO ByteString 

Generates a (cryptographically) secure and URL-friendly ID from system entropy.