import "github.com/yujiahaol68/captchy"
captchy implements a abundant CAPTCHAs image generation through flexible config
Split and rotate subImage to against OCRs
Support custom TTF font file or Go builtin fonts
Support export to Base64, PNG, JPEG image
Only std lib so it is clean
API is still not stable. Not recommend for using in production env !
Generate from very simple to very complex captcha especially for machine, but still friendly to human
// Load fonts and setup default config
captchy.New(captchy.Default())
rbs := captchy.RandomString()
// Then hash and save rbs into session by yourself
// ..
encoder := captchy.GenerateImg(rbs)
// encoder can encode image into io.Writer, and write it anywhere you prefer.
// It can be local file writer or http response writer
// ..
DESIGNING CAPTCHA ALGORITHM: SPLITTING AND ROTATING THE IMAGES AGAINST OCRs