Skip to content

stjet/Captcha

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prussia Captcha: Stupidly Simple

Everything about this captcha is simple: the language (Ruby), lack of database, API, running, and the actual captcha (still hard enough to stop bots... hopefully).

How it Works

It uses cryptography! And time! Probably no vulnerabilities. Create an issue if you find one. Salsa20? Secure dancing.

API

All requests should be made in the backend, obviously. Everything returned is JSON, except for the image.

GET /captcha

Returns:

{
  "image": "the image url name",
  "code": "encrypted text",
  "nonce": "a cryptographic nonce needed to decode the code"
}

GET /challenge/<image>

Returns:

PNG Image (210x70) with the answer

POST /captcha

Payload:

{
  "code": "the encrypted text",
  "guess": "user's nonce",
  "nonce": "the cryptographic nonce"
}

Returns:

{
  "success": bool (true or false)
}

About

A free, no db text captcha service written in ruby (badly)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published