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

SQL Anywhere 11.0.1 (Français) » UltraLiteJ » UltraLiteJ Reference » UltraLiteJ API reference » EncryptionControl interface


encrypt method

Encrypts a byte array in the database.

void EncryptionControl.encrypt(
  int page_no,
  byte[] src,
  byte[] tgt
) throws ULjException
  • page_no   The page number of the array data.

  • src   The decrypted source page.

  • tgt   The resulting page that is encrypted by the method.


This method is supplied with an unencrypted byte array, src, and an associated page number. Your method must encrypt or obfuscate src and store the result into the tgt byte array. tgt is then stored into the database.