#api-token #github-api #token #api #secret #generator

cybertoken

A Rust implementation of the cybertoken, a token format inspired by the GitHub API token format

2 stable releases

1.0.1 Jan 15, 2024

#36 in #api-token

Download history 3/week @ 2024-11-20 29/week @ 2024-11-27 58/week @ 2024-12-04 7/week @ 2024-12-11 16/week @ 2024-12-25 5/week @ 2025-01-15 22/week @ 2025-01-22 19/week @ 2025-02-05 2/week @ 2025-02-19 50/week @ 2025-02-26

71 downloads per month

MIT OR Apache-2.0 OR EUPL-1.2

13KB
151 lines

cybertoken-rs CI CD

A Rust implementation of the cybertoken, a token format inspired by the GitHub API token format.

Licensed under MIT or APACHE 2.0 or EUPL v 1.2.

Install

Extend your Cargo.toml configuration file to include cybertoken as a dependency or install the package with the Cargo package manager.

cargo add cybertoken

Usage

use cybertoken::Cybertoken;

fn main() {
  let cybertoken = Cybertoken::new("zugriff");
  let token = cybertoken.generate_token();

  println!("{}", token); // zugriff_2uiWaFKqkMD9CLdUqrYZd2BWYfj2gz806DP5P

  println!("valid {}", cybertoken.is_token_string("zugriff_icnocrRLDoZ3uCPosLA0277hQ58ob379X43U")); // valid true
}

Dependencies

~420KB