Skip to content

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

License

Apache-2.0 and 2 other licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
EUPL-1.2
LICENSE-EUPL
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

lucagoslar/cybertoken-rs

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
}

About

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

Resources

License

Apache-2.0 and 2 other licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
EUPL-1.2
LICENSE-EUPL
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published

Languages