In this article, we propose a two-phase encryption algorithm for data
base systems. The system, a record-oriented cryptosystem, allows the e
ncryption and decryption of fields within a record by means of writing
and reading subkeys of fields. In addition, we develop two algorithms
for cryptographic relational algebra in data base systems. Two simple
methods of solving the key management problem in the subkey scheme ar
e presented.