CADP for Java Mobile App Samples
CADP for Java Mobile App is an android based application. It is integration between CADP for Java WebServices and android application.
The Mobile App sample is available in CADP_for_JAVA\lib\webservices\AndroidApp
.
Installation
Download the
protectapp.apk
file from the latest CADP for Java build and copy theapk
to your android mobile handset.Run the
protectapp.apk
setup to install the CADP for Java Mobile App.Click Install to start the installation. The following screen appears displaying installation in progress:
Once the installation is complete, the following screen appears:
On the SETTINGS tab enter the following details.
Host Address – IP address of the server.
Port – Port of the server.
User Name – Username to connect to the server.
Password – Password to connect to the server.
Click Save.
Encryption with Mobile App
To encrypt a plaintext with mobile app, follow the steps below:
On the android mobile handset, run the CADP for Java application.
On the ENCRYPT tab, enter the following details:
Type – Input data type.
Algorithm – Algorithm to be used for encryption.
Key Name – Name of the key to be used for encryption. Version with all (encryption with all the versions of the key) is not supported.
Note
Version with all: When you append #all in the key name, the system performs encryption of the plaintext with all the available versions of the key.
IV – Optional, a random data.
Plain Text – The plaintext data to be encrypted.
Click Submit. The encrypted ciphertext output is displayed in a pop-up message box.
Click Copy to copy the ciphertext or click Cancel to end.
Decryption with Mobile App
To decrypt a plaintext with mobile app, follow the steps below:
On the android mobile handset, run the CADP for Java application.
On the DECRYPT tab, enter the following details:
Type_Decrypt – Input data type.
Algorithm – Algorithm to be used for decryption.
Key Name – Name of the key to be used for decryption.
IV – optional, a random data. It should be same that was used to encrypt the plaintext.
Encrypt Text – The ciphertext data to be decrypted.
Click Submit. The decrypted plaintext output is displayed in a pop-up message box.
Click Copy to copy the plaintext or click Cancel to end.
Exit Mobile App
To exit CADP for Java mobile application, press back or exit button on your android mobile handset.