encrypt function

Encrypts a byte array in the database.

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

  • src   The decrypted source page.

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

Remarks

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.