id32

Crates.ioid32
lib.rsid32
version2.0.0
created_at2024-11-22 04:34:21.154216+00
updated_at2024-11-22 05:39:35.711394+00
description32-character RFC 4648 lowercase Base32 IDs
homepage
repositoryhttps://github.com/kahnpoint/id32
max_upload_size
id1457013
size19,814
adam (kahnpoint)

documentation

README

ID32

No more ugly IDs!

ID32s look like: m6ov3liumm6trqulojtj6yselragllbg

  • 32 lowercase characters of RFC 4648 Base32 (a-z2-7)
    • represents 20 bytes (160 bits) of randomness
  • Easily double-clickable (no hyphens or underscores)
    • NanoID: 0klp0QFYiS_dOUzhF-y_g
    • UUID: 10dd71ca-6030-407b-89a4-55c4e11006cd
    • ID32: trhfnnxkrotlcc3gluyl4mqr6aomt4e7

The code is essentially the same as Nanoid, and is available for Javascript, Python and Rust.

Installation

cargo add id32

Usage

fn main() {
    println!("{}", id32::id32()); // h3uu3spo3skwzidi62gk6vzfr4ifxsf3
}
Commit count: 8

cargo fmt