com.gsoft.titration.client
Class EncryptionUtility.DefaultEncryptionAlgorithm


class EncryptionUtility.DefaultEncryptionAlgorithm
implements EncryptionAlgorithm


Method Summary
 chargetDecryptedChar(char crypt, int seed)
           
 chargetEncryptedChar(char base, int seed)
          This algorithm adds 23 to the character, and then
subtracts the amount of the seed which is the length of
the string, unless the length of the string is 23, then
it will subtract the length of the string + 3.
 intgetSeed(String base, int current)
           

Method Detail

getDecryptedChar

public char getDecryptedChar(char crypt, int seed)

getEncryptedChar

public char getEncryptedChar(char base, int seed)
This algorithm adds 23 to the character, and then
subtracts the amount of the seed which is the length of
the string, unless the length of the string is 23, then
it will subtract the length of the string + 3.

If the result is less than 33, the result is subtracted
from 126.
If the result is greater than 126, the result less 126 is
added to 33.

getSeed

public int getSeed(String base, int current)