generate_api_key 1.0.0 copy "generate_api_key: ^1.0.0" to clipboard
generate_api_key: ^1.0.0 copied to clipboard

A library for generating random API key/access tokens

example/main.dart

import 'package:generate_api_key/generate_api_key.dart';

void main(List<String> args) {
  const generator = GenerateApiKey(
    prefix: 'pk',
    options: StringGenerationOptions(
      length: 20,
      pool: 'ABCDEFG1234567890',
    ),
  );

  final apiKey = generator.generateApiKey();
  print(apiKey); // pk.ECCC9398D9G2D3G26A1F
}
4
likes
150
points
39
downloads

Publisher

unverified uploader

Weekly Downloads

A library for generating random API key/access tokens

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

base32, base_x, uuid

More

Packages that depend on generate_api_key