All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class db.RowEncrypt

java.lang.Object
   |
   +----db.RowEncrypt

public class RowEncrypt
extends Object
implements TableEncrypt
This package provides an example of how to write an encryption module for use with InstantDB.

It uses the table name, the row number and a supplied password to create a hash. This is then used to initialise a pseudo random number generator, which generates rand number which are used to XOR the contents of a row of data.

WARNING - This is an example module only. For export control reasons, it uses a deliberately weak encryption algorithm. HIGHLY CONFIDENTIAL DATA SHOULD NOT BE ENCRYPTED USING THIS MODULE.


Constructor Index

 o RowEncrypt()

Method Index

 o Decrypt(String, byte[], int, int[])
Invoked by InstantDB just after a row is has been read from disk.
 o Encrypt(String, byte[], int, int[])
Invoked by InstantDB just before a row is about to be written to disk.

Constructors

 o RowEncrypt
 public RowEncrypt()

All Packages  Class Hierarchy  This Package  Previous  Next  Index