public class SymmetricCrypto extends Object
| Constructor and Description |
|---|
SymmetricCrypto() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
decrypt(byte[] text,
SecretKey key) |
static byte[] |
decrypt(byte[] text,
String key) |
static byte[] |
decrypt(String text,
String key) |
static byte[] |
encrypt(byte[] text,
SecretKey key) |
static byte[] |
encrypt(byte[] text,
String key) |
static byte[] |
encrypt(String text,
String key) |
static void |
generateKey() |
public static final String KEY
public static byte[] encrypt(String text, String key) throws FileNotFoundException, IOException, ClassNotFoundException
public static byte[] encrypt(byte[] text,
String key)
throws FileNotFoundException,
IOException,
ClassNotFoundException
public static byte[] encrypt(byte[] text,
SecretKey key)
public static byte[] decrypt(String text, String key) throws FileNotFoundException, IOException, ClassNotFoundException
public static byte[] decrypt(byte[] text,
String key)
throws FileNotFoundException,
IOException,
ClassNotFoundException
public static byte[] decrypt(byte[] text,
SecretKey key)
public static void generateKey()
Copyright © 2017 The CLARUS Consortium. All rights reserved.