org.pf.textx
Class StringObfuscator

java.lang.Object
  extended by org.pf.textx.StringObfuscator

public class StringObfuscator
extends java.lang.Object

Simple converter that can convert a string into a obfuscated Base64 representation and back to its original.

Version:
1.0
Author:
Manfred Duchrow

Constructor Summary
StringObfuscator()
          Initialize the new instance with default values.
 
Method Summary
 java.lang.String obfuscate(java.lang.String aStr)
          Obfuscate the given string and return a Base64 encoded representation of it
 java.lang.String plain(java.lang.String aStr)
          Converts an obfuscated string back to its original plan representation
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringObfuscator

public StringObfuscator()
Initialize the new instance with default values.

Method Detail

obfuscate

public java.lang.String obfuscate(java.lang.String aStr)
Obfuscate the given string and return a Base64 encoded representation of it

Parameters:
aStr - The string to obfuscate (must not be null)

plain

public java.lang.String plain(java.lang.String aStr)
Converts an obfuscated string back to its original plan representation

Parameters:
aStr - The string to convert back to plain text (must not be null)