matoous / Go Nanoid
Licence: mit
Golang random IDs generator.
Stars: ✭ 373
Labels
Projects that are alternatives of or similar to Go Nanoid
secrets.clj
A library designed to generate cryptographically strong random numbers.
Stars: ✭ 64 (-82.84%)
Mutual labels: uuid
shortuuid.rb
Convert UUIDs & numbers into space efficient and URL-safe Base62 strings, or any other alphabet.
Stars: ✭ 38 (-89.81%)
Mutual labels: uuid
Xid.Net
Ported from https://github.com/rs/xid - A fast, low allocation, zero config, thread-safe 12 byte UUID generator based on the Mongo Object Id algorithm.
Stars: ✭ 17 (-95.44%)
Mutual labels: uuid
gobarber-api-gostack11
API GoBarber / NodeJS / Express / Typescript / SOLID
Stars: ✭ 39 (-89.54%)
Mutual labels: uuid
Uniuri
Go package uniuri generates random strings good for use in URIs to identify unique objects.
Stars: ✭ 336 (-9.92%)
Mutual labels: uuid
cyksuid
Fast Python implementation of KSUID (K-Sortable Globally Unique IDs) using Cython
Stars: ✭ 29 (-92.23%)
Mutual labels: uuid
Butterfly
分布式ID生成器框架:超高性能的发号器框架。通过引入多种新的方案,彻底解决雪花算法的时间回拨等问题,并将雪花算法原生QPS提高最少十几~二十倍
Stars: ✭ 111 (-70.24%)
Mutual labels: uuid
Newid
A sequential id generator that works across nodes with no collisions
Stars: ✭ 255 (-31.64%)
Mutual labels: uuid
ulid-creator
A Java library for generating Universally Unique Lexicographically Sortable Identifiers (ULID)
Stars: ✭ 38 (-89.81%)
Mutual labels: uuid
Android cn oaid
适用于国内各大Android手机厂商的开放匿名设备标识(OAID)解决方案,可替代移动安全联盟提供的 SDK 闭源方案(miit_mdid_xxx.aar)。
Stars: ✭ 370 (-0.8%)
Mutual labels: uuid
twitch-chat-visualizer
A Node.js Project. Would you like to see your chat stream with a custom design? This is for you!
Stars: ✭ 14 (-96.25%)
Mutual labels: uuid
Go Nanoid
This package is Go implementation of ai's nanoid!
Safe. It uses cryptographically strong random generator.
Compact. It uses more symbols than UUID (A-Za-z0-9_-
)
and has the same number of unique options in just 22 symbols instead of 36.
Fast. Nanoid is as fast as UUID but can be used in URLs.
Install
Via go get tool
$ go get github.com/matoous/go-nanoid/v2
Usage
Generate ID
id, err := gonanoid.New()
Generate ID with a custom alphabet and length
id, err := gonanoid.Generate("abcde", 54)
Notice
If you use Go Nanoid in your project, please let me know!
If you have any issues, just feel free and open it in this repository, thanks!
Credits
- ai - nanoid
- icza - his tutorial on random strings in Go
License
The MIT License (MIT). Please see License File for more information.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].