Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SAP Sybase SQL Anywhere 16.0 » UltraLite - Java Programming » UltraLiteJ application development » Code examples


Java SE example: Encrypting data

Run the Java SE sample to understand how to encrypt data in an UltraLite Java edition database and incur a performance penalty to decrypt the data.


There are no prerequisites for this task.

Contexte et remarques

This example is for Java SE. For a complete BlackBerry encryption sample, see %SQLANYSAMP16%\UltraLiteJ\BlackBerryEncryption.

  1. Change to the following directory: %SQLANYSAMP16%\UltraLiteJ\J2SE.

  2. Run the following command (the command is case sensitive):

    rundemo Encrypted


The sample application runs successfully. Encrypted data is inserted in the UltraLite Java edition database, and is decrypted when selecting the data.