|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.koala.koalautil.Encryption
This class uses the api defined in JSE to encrypt/decrypt data. Currently it uses the Cryptix32 provider with 3DES
Constructor Summary | |
Encryption()
|
Method Summary | |
static java.lang.String |
decryptBytes(byte[] cipherTxt)
decrypts an array of bytes |
static java.lang.String |
decryptBytes(byte[] cipherTxt,
java.lang.String algorithm,
java.lang.String key)
decrypts a chunk of data |
static java.lang.String |
desencriptarString(java.lang.String txt)
|
static java.lang.String |
desencriptarString(java.lang.String txt,
java.lang.String algorithm,
java.lang.String key)
|
static byte[] |
encriptarABytes(java.lang.String txt)
|
static byte[] |
encriptarABytes(java.lang.String txt,
java.lang.String algorithm,
java.lang.String key)
encrypts a message |
static java.lang.String |
encriptarAString(java.lang.String txt)
|
static java.lang.String |
encriptarAString(java.lang.String txt,
java.lang.String algorithm,
java.lang.String key)
|
static java.lang.String |
hashString(java.lang.String txt)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Encryption()
Method Detail |
public static java.lang.String decryptBytes(byte[] cipherTxt) throws ChainedException
cipherTxt
-
ChainedException
public static java.lang.String decryptBytes(byte[] cipherTxt, java.lang.String algorithm, java.lang.String key) throws ChainedException
algorithm
- the encryption algorythm to usekey
- the encryption keycipherTxt
- the cyphertext
ChainedException
- unspecifiedpublic static byte[] encriptarABytes(java.lang.String txt) throws ChainedException
txt
-
ChainedException
public static byte[] encriptarABytes(java.lang.String txt, java.lang.String algorithm, java.lang.String key) throws ChainedException
algorithm
- the encryption algorithm to usekey
- the encryption's keytxt
- plaintext
ChainedException
- unspecifiedpublic static java.lang.String encriptarAString(java.lang.String txt) throws ChainedException
txt
-
ChainedException
public static java.lang.String encriptarAString(java.lang.String txt, java.lang.String algorithm, java.lang.String key) throws ChainedException
txt
- algorithm
- key
-
ChainedException
public static java.lang.String desencriptarString(java.lang.String txt) throws ChainedException
txt
-
ChainedException
public static java.lang.String desencriptarString(java.lang.String txt, java.lang.String algorithm, java.lang.String key) throws ChainedException
txt
- algorithm
- key
-
ChainedException
public static java.lang.String hashString(java.lang.String txt) throws ChainedException
txt
-
ChainedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |