| Crates.io | genrs |
| lib.rs | genrs |
| version | 0.1.1 |
| created_at | 2025-02-15 17:13:36.464792+00 |
| updated_at | 2025-02-15 17:13:36.464792+00 |
| description | command-line tool and Library for generating random keys |
| homepage | https://arteiii.github.io |
| repository | https://github.com/Arteiii/genrs |
| max_upload_size | |
| id | 1556955 |
| size | 42,751 |
genrs is a command-line tool for generating random keys, UUIDs, and encoding them in different formats. It supports generating custom-length keys, common key presets, and UUIDs of various versions.
To use genrs, run the following command:
genrs [OPTIONS]
-p, --preset <PRESET>
aes128, aes192, aes256, hmac256, hmac512, jwt256, jwt512, apikey128, apikey256genrs --preset aes256-f, --format <FORMAT>
hex, base64hex-l, --length <LENGTH>
32 (i.e., 256 bits)-m, --mode <MODE>
key for key generation, uuid for UUID generation.key-u, --uuid-version <UUID_VERSION>
v1, v3, v4, v5v4-n, --namespace <NAMESPACE>
-N, --name <NAME>
-h, --help
genrs.-V, --version
genrs.Generate a 32-byte key in hexadecimal format (default):
genrs
Generate a 64-byte key in base64 format:
genrs -f base64 -l 64
Generate a 16-byte key using the aes128 preset:
genrs --preset aes128
Generate a version 4 UUID:
genrs --mode uuid
Generate a version 1 UUID:
genrs --mode uuid --uuid-version v1
Generate a version 3 UUID with a namespace and name:
genrs --mode uuid --uuid-version v3 --namespace <UUID> --name "example"
To install genrs, you can build it from source using Cargo:
cargo build --release
The resulting binary will be located in the target/release directory.
You can move it to a directory in your PATH for easy access.
genrs is licensed under the Apache License, Version 2.0. See the LICENSE file for details.