Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- urlSafeAlphabet :: ByteString
- nextRandomFromAlphabet :: ByteString -> Int -> IO ByteString
- nextRandom :: Int -> IO ByteString
Documentation
urlSafeAlphabet :: ByteString Source #
A URL-friendly alphabet.
See section 2.3 of RFC3986 for more information.
nextRandomFromAlphabet Source #
:: ByteString | Alphabet |
-> Int | Length of ID |
-> IO ByteString |
Generates a (cryptographically) secure ID with a specified alphabet at a given length from system entropy.
:: Int | Length of ID |
-> IO ByteString |
Generates a (cryptographically) secure and URL-friendly ID from system entropy.