C library that makes captcha.

Lucy McClane 3ef25083b4 direct link for each example 3 年 前
examples bc18e51901 libcaptcha untested 3 年 前
patterns bc18e51901 libcaptcha untested 3 年 前
src bc18e51901 libcaptcha untested 3 年 前
test bc18e51901 libcaptcha untested 3 年 前
ttf bc18e51901 libcaptcha untested 3 年 前
.gitignore 5ec95f24a2 initial commit 3 年 前
LICENSE bc18e51901 libcaptcha untested 3 年 前
Makefile.am bc18e51901 libcaptcha untested 3 年 前
README.md 3ef25083b4 direct link for each example 3 年 前
bootstrap bc18e51901 libcaptcha untested 3 年 前
configure.ac bc18e51901 libcaptcha untested 3 年 前

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

Get familiar with general concept. example1.c

example1

How to make a random sized glyphs. example2.c

example2

Apply random positions for glyphs. example3.c

example3

Get familiar with patterns made from png images. example4.c

example4

Patterns, patterns everywhere. example5.c

example5

Some crazy stuff. example6.c

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