public final class MessageCryptoUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
SIGNATURE_HEADER
The name of the Signature Header
|
| Modifier and Type | Method and Description |
|---|---|
static String |
crypt(String data) |
static String |
decrypt(String data) |
static void |
main(String[] args)
start this to generate an AES key or (de/en)crypt data
|
static String |
sign(String msg) |
static boolean |
validate(String msg,
String signature) |
public static final String SIGNATURE_HEADER
public static String crypt(String data) throws CryptoException
data - the data to encryptCryptoException - on encryption errorpublic static String decrypt(String data) throws CryptoException
data - the BASE 64 dataCryptoException - on decryption errorpublic static String sign(String msg) throws CryptoException
msg - the message to signCryptoException - on sign errorpublic static boolean validate(String msg, String signature) throws CryptoException
msg - the message to validatesignature - the signature hash to checkCryptoException - on sign errorpublic static void main(String[] args)
args - the CLI argumentsCopyright © 2016 Taimos GmbH. All rights reserved.