Package org.logevents.observers.web
Class CryptoVault
- java.lang.Object
-
- org.logevents.observers.web.CryptoVault
-
public class CryptoVault extends Object
Encrypts and decrypts strings with Blowfish cipher. Used to send encrypted cookies.
-
-
Constructor Summary
Constructors Constructor Description CryptoVault(String encryptionKey)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringdecrypt(String value)Stringencrypt(String string)static StringrandomString(int length)
-
-
-
Constructor Detail
-
CryptoVault
public CryptoVault(String encryptionKey)
-
-
Method Detail
-
randomString
public static String randomString(int length)
-
decrypt
public String decrypt(String value) throws GeneralSecurityException
- Throws:
GeneralSecurityException
-
-