public interface Crypto
| Modifier and Type | Method and Description |
|---|---|
String |
sign(String message)
Signs a message using the application's secret key
|
String |
sign(String message,
byte[] key)
Signs a message using a given secret
|
String sign(String message) throws UnsupportedEncodingException, InvalidKeyException, NoSuchAlgorithmException
message - The message to signUnsupportedEncodingExceptionInvalidKeyExceptionNoSuchAlgorithmExceptionString sign(String message, byte[] key) throws UnsupportedEncodingException, InvalidKeyException, NoSuchAlgorithmException
message - The message to signkey - The secret used to sign the messageUnsupportedEncodingExceptionInvalidKeyExceptionNoSuchAlgorithmException