C library that makes captcha.

Lucy McClane bc18e51901 libcaptcha untested %!s(int64=3) %!d(string=hai) anos
examples bc18e51901 libcaptcha untested %!s(int64=3) %!d(string=hai) anos
patterns bc18e51901 libcaptcha untested %!s(int64=3) %!d(string=hai) anos
src bc18e51901 libcaptcha untested %!s(int64=3) %!d(string=hai) anos
test bc18e51901 libcaptcha untested %!s(int64=3) %!d(string=hai) anos
ttf bc18e51901 libcaptcha untested %!s(int64=3) %!d(string=hai) anos
.gitignore 5ec95f24a2 initial commit %!s(int64=3) %!d(string=hai) anos
LICENSE bc18e51901 libcaptcha untested %!s(int64=3) %!d(string=hai) anos
Makefile.am bc18e51901 libcaptcha untested %!s(int64=3) %!d(string=hai) anos
README.md bc18e51901 libcaptcha untested %!s(int64=3) %!d(string=hai) anos
bootstrap bc18e51901 libcaptcha untested %!s(int64=3) %!d(string=hai) anos
configure.ac bc18e51901 libcaptcha untested %!s(int64=3) %!d(string=hai) anos

README.md

Libcaptcha

Highly customizable captcha making library.

Features

  • TTF font support
  • UTF-8 support, you can use any glyph
  • An easy API (I suppose)
  • Zero dependencies
  • Entirely written in C

How to install

It is as simple as

./configure
make
make install

How to use

Check out examples

  1. Get familiar with general concept.

example1

  1. How to make a random sized glyphs.

example2

  1. Apply random positions for glyphs.

example3

  1. Get familiar with patterns made from png images.

example4

  1. Patterns, patterns everywhere.

example5

  1. Some crazy stuff.

example6

Don't forget to use lc_free() to free all the stuff libcaptcha returns to you.

I've noticed that it is very easy to get lost sometimes, just use valgrind.

License

GPLv2