Package de.mhus.lib.core.crypt
Class Twofish
- java.lang.Object
-
- de.mhus.lib.core.crypt.Twofish
-
public class Twofish extends Object
-
-
Constructor Summary
Constructors Constructor Description Twofish()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]decrypt(byte[] strEncrypted, String strKey)static Stringdecrypt(String strEncrypted, String strKey)static byte[]encrypt(byte[] strClearText, String strKey)static Stringencrypt(String strClearText, String strKey)
-
-
-
Method Detail
-
encrypt
public static String encrypt(String strClearText, String strKey) throws Exception
- Throws:
Exception
-
decrypt
public static String decrypt(String strEncrypted, String strKey) throws Exception
- Throws:
Exception
-
encrypt
public static byte[] encrypt(byte[] strClearText, String strKey) throws Exception- Throws:
Exception
-
-