Crates.io | superflake |
lib.rs | superflake |
version | 0.2.0 |
source | src |
created_at | 2024-03-07 15:21:57.137538 |
updated_at | 2024-03-07 17:43:47.959098 |
description | Ultra-safe identification technology |
homepage | |
repository | |
max_upload_size | |
id | 1166053 |
size | 16,711 |
Superflake is an ultra-safe identification technology inspired by Snowflake IDs.
A Superflake is generated by concatenating:
use superflake::Superflake;
let mut superflake =
Superflake::new_with_node_id(1023, None); // Specify a custom epoch if you want
let id = superflake.gen(); // 392366571697205248
// Decode the Superflake
let decoded_id = superflake.decode(id);