kerberus 1.0.1 copy "kerberus: ^1.0.1" to clipboard
kerberus: ^1.0.1 copied to clipboard

Kerberus is a proof of work captcha library

Dart port of Kerberus

Features #

  • Resolve challenge
  • Validate solution

Getting started #

dart pub add kerberus

Usage #

// Challenge example, usually provided by the server
Challenge challenge = Challenge(
  id: uuid.v4(),
  salts: [uuid.v4(), uuid.v4()],
  difficultyFactor: 50000,
);

// Could be an API key
String input = 'JRTFM';

// Resolve the challenge on client side
Solution solution = await resolveChallenge(
    challenge,
    input,
);

// Validate the solution on server side
var success = await validateSolution(challenge, solution, input);

print('Success: $success');
0
likes
120
points
22
downloads

Publisher

verified publishericure.com

Weekly Downloads

Kerberus is a proof of work captcha library

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

crypto, flutter, uuid

More

Packages that depend on kerberus