Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
加密数据库中的字节数组。
void EncryptionControl.encrypt( int page_no, byte[] src, byte[] tgt ) throws ULjException
page_no 数组数据的页编号。
src 已解密的源页。不允许修改此数组。
tgt 使用此方法加密的结果页。
为此方法提供未加密的字节数组 src 和相关的页编号。您的方法必须加密或模糊处理 src 并将结果存储在 tgt 字节数组中。tgt 随后将被存储到数据库中。
所使用的算法必须保留数据大小(加密数据的长度与原始数据相同),并且能够解密部分页面(首先将页面 0 读取并解密为 128 个字节长度的页面,然后将其读取并解密为完整大小的页面)。不允许修改 src 数组。