Image verification check for JSP 2.0
Dion wanted a way to add an image verification filter to his Java websites.
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