|
|||||||||
| Home >> All >> gsoft >> [ enc overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
gsoft.enc
Class EncryptionUtility

java.lang.Objectgsoft.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)
|
|||||||||
| Home >> All >> gsoft >> [ enc overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
gsoft.enc.EncryptionUtility