3 stable releases
new 2.0.0 | Nov 22, 2024 |
---|---|
1.1.1 | Nov 22, 2024 |
#3 in #nanoid
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
- NanoID:
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