#base32 #id #uuid #nanoid

id32

32-character RFC 4648 lowercase Base32 IDs

3 stable releases

new 2.0.0 Nov 22, 2024
1.1.1 Nov 22, 2024

#3 in #nanoid

MPL-2.0 license

8KB

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
}

Dependencies

~87–260KB