public interface Cipher
Modifier and Type | Method and Description |
---|---|
org.json.JSONObject |
decrypt(java.lang.String key,
byte[] data)
Decrypt Encrypted JSON Data
|
byte[] |
encrypt(java.lang.String key,
org.json.JSONObject data)
Encrypt JSON Data
|
java.lang.String |
getName()
Get the name of this Cipher
|
java.lang.String getName()
byte[] encrypt(java.lang.String key, org.json.JSONObject data) throws java.lang.Exception
key
- Key to Encrypt Data withdata
- Data to Encryptjava.lang.Exception
org.json.JSONObject decrypt(java.lang.String key, byte[] data) throws java.lang.Exception
key
- Key to Decrypt Data withdata
- Encrypted Data Arrayjava.lang.Exception