Nanoid

0

A small, fast, and secure ID generator library for Go.

Miscellaneous

id
golang-library
go-lib
go

nanoid

A small, fast library for generating cryptographically secure, URL safe IDs.

Go Report Card License: Unlicense Go Reference

Demo

An example of a CLI that uses nanoid-go

Installation

To use this with your Go project:

$ go get github.com/Kaamkiya/nanoid-go

Usage

It's a simple library, and it exports only one function and two constants.

To use the defaults:

import "github.com/Kaamkiya/nanoid-go"

nanoid.Nanoid(nanoid.DefaultLength, nanoid.DefaultCharset)

More complete examples can be found in _examples/.

Features

  • Cryptographically secure - it uses a secure random number generator to make the IDs.
  • Fast.
  • Small - the only import is in the standard library.
  • URL safe - it only uses URL safe characters, unless you want it to use more.

License

This project uses the Unlicense.

Thanks

Thanks to all of the contributors: