Rants about Java and other internet technologies by Sam Pullara

Image verification check for JSP 2.0

was published on January 14th, 2005 and is listed in Uncategorized

Basically this consists of a tag that puts an image on the page and the answer in the session. You can then trivially check it in the next page. Its done using the Jakarta Image Taglib which in turn depends on Poor Man’s Imaging Wrapper. The imageCheck.tag file contains the transformations being done to make the image harder to read electronically, not that I think anyone would actually bother to do this. By modifying what goes on here you can make it harder.

Here is JAR file with an IntelliJ project for building the image verification system . Here is the image verification system running. The current implementation is extremely simple and it could be abstracted better, blah blah blah. But on the other hand it already works and doesn’t mess up your code too much.

P.S. If you run this on a system with no display start Tomcat or whatever app server with -Djava.awt.headless=true

"Image verification check for JSP 2.0" was published on January 14th, 2005 and is listed in Uncategorized.

Follow comments via the RSS Feed | Leave a comment | Trackback URL

blog comments powered by Disqus

YUI-Mainstream Theme by Buzzdroid.com

 Premium Wordrpess Theme