api_key 0.1.0

Generate api key in rust supports base32, base62, string, uuid4, uuid5
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
extern crate api_key;

use api_key::types::{ApiKeyResults, Default, UuidV4Generator};

fn main() {
  let api = api_key::uuid4(UuidV4Generator {
    batch: 2,
    ..UuidV4Generator::default()
  });

  assert!(match api {
    ApiKeyResults::StringArray(d) => d.len() == 2,
    _ => false,
  })
}