Recaptcha4j

Recaptcha4j is a library to work with recaptcha's implementation of a CAPTCHA API.
Download

Recaptcha4j Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Price:
  • FREE
  • Publisher Name:
  • Tanesha Networks
  • Publisher web site:
  • http://tanesha.net/projects/recaptcha4j/

Recaptcha4j Tags


Recaptcha4j Description

Recaptcha4j is a library to work with recaptcha's implementation of a CAPTCHA API. Recaptcha4j project is a library to work with recaptcha's implementation of a CAPTCHA API. The special about recaptcha is that their implementation picks words to help solving difficult OCR scanning processes so people can enjoy more books online. That's quite a noble quest IMHO, so the more implementations of clients for their API, the more books we will get.Using:Before you can use the library, you need to get API keys from their website. Follow the link above to find those. After that you have to call the library from your code. You can do that something like this (example in JSP): ...< % // create recaptcha without < noscript > tags ReCaptcha captcha = ReCaptchaFactory.newReCaptcha("my-public-key", "my-private-key", false); String captchaScript = captcha.createRecaptchaHtml(request.getParameter("error"), null); out.print(captchaScript);% > ...Checking the captcha goes like this: ...< % // create recaptcha without < noscript > tags ReCaptcha captcha = ReCaptchaFactory.newReCaptcha("my-public-key", "my-private-key", false); ReCaptchaResponse response = captcha.checkAnswer(request.getRemoteAddr(), request.getParameter("recaptcha_challenge_field"), request.getParameter("recaptcha_response_field")); if (response.isValid()) { out.print("Success"); } else { out.print(response.getErrorMessage()); }% > ...There is a small example web-app in the SVN-repository which you can find here: https://svn.tanesha.net/svn/sandbox/recaptcha4j-example/trunk/.


Recaptcha4j Related Software