com.alee.utils
Class EncryptionUtils

java.lang.Object
  extended by com.alee.utils.EncryptionUtils

public final class EncryptionUtils
extends java.lang.Object

This class provides a set of utilities to encode and decode data.

Author:
Mikle Garin

Constructor Summary
EncryptionUtils()
           
 
Method Summary
static java.lang.String base64decode(java.lang.String text)
          Returns text decoded with base64.
static java.lang.String base64encode(java.lang.String text)
          Returns text encoded with base64.
static java.lang.String decrypt(java.lang.String text)
          Returns text decoded using base64 and decrypted through xor.
static java.lang.String encrypt(java.lang.String text)
          Returns text enrypted through xor and encoded using base64.
static java.lang.String xorText(java.lang.String text)
          Returns text encrypted using xor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EncryptionUtils

public EncryptionUtils()
Method Detail

encrypt

public static java.lang.String encrypt(java.lang.String text)
Returns text enrypted through xor and encoded using base64.

Parameters:
text - text to encrypt
Returns:
encrypted text

decrypt

public static java.lang.String decrypt(java.lang.String text)
Returns text decoded using base64 and decrypted through xor.

Parameters:
text - text to decrypt
Returns:
decrypted text

xorText

public static java.lang.String xorText(java.lang.String text)
Returns text encrypted using xor.

Parameters:
text - to encrypt
Returns:
encrypted text

base64encode

public static java.lang.String base64encode(java.lang.String text)
Returns text encoded with base64.

Parameters:
text - text to encode
Returns:
text encoded with base64

base64decode

public static java.lang.String base64decode(java.lang.String text)
Returns text decoded with base64.

Parameters:
text - text to decoded
Returns:
text decoded with base64