Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

gsoft.enc
Class EncryptionUtility  view EncryptionUtility download EncryptionUtility.java

java.lang.Object
  extended bygsoft.enc.EncryptionUtility

public class EncryptionUtility
extends java.lang.Object

This class is to be used by CoreDataResources to store the algorythm for encryption and decryption of String variables. It is a quick hack, and needs a lot of work.


Nested Class Summary
(package private)  class EncryptionUtility.DefaultEncryptionAlgorithm
           
 
Field Summary
private  EncryptionAlgorithm Algorithm
          Encryption Algorythm used to encrypt and decrypt
 
Constructor Summary
EncryptionUtility()
           
 
Method Summary
 java.lang.String decrypt(java.lang.String cryptogram)
          Will return the encrypted String clear using the currently set algorythm.
 java.lang.String encrypt(java.lang.String word)
          Will encrypt and return the clear String Using the currently set algorythm.
 EncryptionAlgorithm getEncryptionAlgorithm()
          Returns the EncryptionAlgorythm used by the Utility
static void main(java.lang.String[] args)
           
 void setEncryptionAlgorithm(EncryptionAlgorithm alg)
          Sets the EncryptionAlgorythm for the Utility
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Algorithm

private EncryptionAlgorithm Algorithm
Encryption Algorythm used to encrypt and decrypt

Constructor Detail

EncryptionUtility

public EncryptionUtility()
Method Detail

setEncryptionAlgorithm

public void setEncryptionAlgorithm(EncryptionAlgorithm alg)
Sets the EncryptionAlgorythm for the Utility


getEncryptionAlgorithm

public EncryptionAlgorithm getEncryptionAlgorithm()
Returns the EncryptionAlgorythm used by the Utility


decrypt

public java.lang.String decrypt(java.lang.String cryptogram)
Will return the encrypted String clear using the currently set algorythm.


encrypt

public java.lang.String encrypt(java.lang.String word)
Will encrypt and return the clear String Using the currently set algorythm.


main

public static void main(java.lang.String[] args)