net.sourceforge.jaulp.crypto
Class SimpleCryptoUtils

java.lang.Object
  extended by net.sourceforge.jaulp.crypto.SimpleCryptoUtils

public final class SimpleCryptoUtils
extends java.lang.Object

Utility class for the use of encrypt or decrypt information.

Version:
1.0
Author:
Asterios Raptis

Method Summary
static java.lang.String decode(java.lang.String toDecode)
          Decrypt the given String.
static java.lang.String decode(java.lang.String toDecode, int relocate)
          Decrypt the given String.
static java.lang.String encode(java.lang.String secret)
          Encrypt the given String.
static java.lang.String encode(java.lang.String secret, int relocate)
          Encrypt the given String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

decode

public static java.lang.String decode(java.lang.String toDecode)
Decrypt the given String.

Parameters:
toDecode - The String to decrypt.
Returns:
The decrypted String.

decode

public static java.lang.String decode(java.lang.String toDecode,
                                      int relocate)
Decrypt the given String.

Parameters:
toDecode - The String to decrypt.
relocate - How much places to switch.
Returns:
The decrypted String.

encode

public static java.lang.String encode(java.lang.String secret)
Encrypt the given String.

Parameters:
secret - The String to encrypt.
Returns:
The encrypted String.

encode

public static java.lang.String encode(java.lang.String secret,
                                      int relocate)
Encrypt the given String.

Parameters:
secret - The String to encrypt.
relocate - How much places to switch.
Returns:
The encrypted String.


Copyright © 2010. All Rights Reserved.