Package org.hobbit.encryption
Class AES
- java.lang.Object
-
- org.hobbit.encryption.AES
-
public class AES extends Object
This class is a wrapper for Java AES encryption.- Author:
- Ivan Ermilov (iermilov@informatik.uni-leipzig.de)
-
-
Field Summary
Fields Modifier and Type Field Description private static StringcipherAlgorithmprivate static org.slf4j.LoggerLOGGERprivate SecretKeysecretKey
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]decrypt(byte[] input)byte[]encrypt(String input)private CiphergetCipherInstance()
-
-
-
Method Detail
-
encrypt
public byte[] encrypt(String input) throws AESException
- Throws:
AESException
-
decrypt
public byte[] decrypt(byte[] input) throws AESException- Throws:
AESException
-
getCipherInstance
private Cipher getCipherInstance() throws AESException
- Throws:
AESException
-
-