Skip to content

kyledayton/rcaptcha

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RCaptcha

RCaptcha is a simple Ruby library for generating CAPTCHA images.

Installation

Add this line to your application's Gemfile:

gem 'rcaptcha'

And then execute:

$ bundle

Or install it yourself as:

$ gem install rcaptcha

Usage

Generating CAPTCHA images is easy, simply give it the 'answer' and it will turn it into an image byte string. Image will be encoded in JPEG format.

# Image will be a distorted version of "29345571"
RCaptcha.generate '29345571'

Will produce something like: Example CAPTCHA

Contributing

  1. Fork RCaptcha
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

A simple CAPTCHA image generator for Ruby

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages