Crates.io | keysmith |
lib.rs | keysmith |
version | 0.4.0 |
source | src |
created_at | 2022-10-07 01:10:54.447009 |
updated_at | 2023-08-23 18:18:30.263133 |
description | Create keys, uuid's, timestamps, and more. |
homepage | https://github.com/njshockey/keysmith-rs |
repository | https://github.com/njshockey/keysmith-rs |
max_upload_size | |
id | 681693 |
size | 35,600 |
Create keys, uuid's, timestamps, and more with Rust.
Here's some example keys:
5WdT@KfYRyRDqh0AAVUsyitSXbm4OQwzClX9.XYn5kLmKeObCf8YE3HqzHdU3UTS
g1Y_Zp9-9rDf7VAaR1KGnH9Uf5klGjSQ6P2rAjK35iK-GnZ@dVXYu.aElzTfTOaK
M3rkxIbrD0lz-SpUBe704X2)Gd(_WprzRJW7N51O@_58180Gs9esIVBO5.OdFOlY
This looks like gibberish, but that's the point. Two id's in a database should not overlap. So if you need a lot of entries, you need to reduce the odds of that happening. If the odds of two identical id's are astronomically low, you shouldn't even need to check for an existing id in the first place. Keysmith does that generation for you and outputs it as a String.
You can also generate version 4 UUID's.
be3b5529-931b-6b75-1678-a057bccf71c9
440146ab-a19a-8a36-2d4b-ba19a79570d4
0090da40-6ce2-59d3-629d-11b293c9e2d3
Keysmith also supports many other data formats.
For usage, see the documentation.
For installation, see crates.io.
You can find the changelog in CHANGELOG.md.
git clone https://github.com/njshockey/keysmith-rs.git
.cargo build
or cargo build --release
to build.
cargo run -p usage
instead.Keysmith uses the Rust standard MIT/Apache-2.0 dual license for best compatibility. See LICENSE-APACHE.txt and LICENSE-MIT.txt for the full licenses.