Nowadays,commerce is highly developed, sensitive information protec-tion is getting more and more importmant to every corporation and every coun-try. This article analyses the importance of database encryption, then designs and implements a database encryption system with role based access control, based on existing cryptosystem and encryption algorithm. This database en-cryption system is highly portable and with strong expansibility, and it im-plements table field based encryption by adding an encryption control layer outside database system, ensures the security of database and prevent sensitive information from leaking. |