Dashboard > blojsom 3.0 > ... > Plugins > Simple Obfuscation Plugin
  blojsom 3.0 Log In   View a printable version of the current page.  
  Simple Obfuscation Plugin
Added by David Czarnecki, last edited by David Czarnecki on Jul 10, 2007
Labels: 
(None)

Description

This plugin will encode the characters of a string into their hex equivalent making it a very simple way to obfuscate data such as e-mail addresses that you do not want to expose to crawlers or e-mail spammers.

Installation and Setup

In your /WEB-INF/classes/blojsom-plugins.xml file, add the following:

<bean id="simple-obfuscation" class="org.blojsom.plugin.obfuscation.SimpleObfuscationPlugin" init-method="init"
          destroy-method="destroy"/>

You may then add "simple-obfuscation" to one of the flavor-based plugin chains.

Usage and URL Parameters

There are no URL parameters to control the operation of the Simple Obfuscation plugin.

Context Attributes and Types

The following table describes the context attributes that are available and their associated type.

Context key Input or Output Type Description
BLOJSOM_PLUGIN_SIMPLE_OBFUSCATION Output org.blojsom.plugin.obfuscation.SimpleObfuscationPlugin object You may then make use of the obfuscate method in your templates. If a null value is passed to the obfuscate method, a null is returned. If a blank value is passed to the obfuscate, a blank value is returned. Otherwise, the obfuscate method will return a string of the form %xx....

Site running on a free Atlassian Confluence Open Source Project License granted to blojsom. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.4 Build:#809 Jun 12, 2007) - Bug/feature request - Contact Administrators