Delphi Database, Delphi Components from ComponentAce
Products Download Order Contact us
Encrypting Databases
Previous  Top  Next



Absolute Database provides easy-to-use and seamless database file encryption.
You can use the strong encryption feature to protect your data from anauthorized users.

You can encrypt / decrypt database file via Absolute Database DBManager utility (...\AbsoluteDatabase\Ultils\Bin\DBManager.exe).

In application code the database encryption could be configured by setting
Password and CryptoAlgorithm properties of TABSDatabase component and its ChangeDatabaseSettings method.

Creating a new encrypted database

You can create an encrypted database file by the following steps:
1.Set the DatabaseName and the DatabaseFileName of TABSDatabase component.  
2.Set the Password property of TABSDatabase component.  
3.Set the CryptoAlgorithm property (optional).  
4.Call the CreateDatabase method.  


Opening an encrypted database

You can open an encrypted database file by the following steps:
1.Set the DatabaseName and the DatabaseFileName of TABSDatabase component.  
2.Set the Password property of TABSDatabase component to enable opening encrypted database  
3.Call the Open method or set the Connected property to True.  

If you didn't set the right
Password property value, the OnPassword event will be fired to request a correct password.


Encrypting an existing database


You can encrypt an existing database file by the call to the
ChangeDatabaseSettings method with the NewPassword and the NewCryptoAlgorithm parameters.


Decrypting an existing database

You can decrypt an existing encrypted database by the following steps:
1.Set the Password property of TABSDatabase component to enable opening encrypted database  
2.Call the ChangeDatabaseSettings method with the blank string passed to the NewPassword parameter.  

Caution:   Make sure that you remember the database password. If you will forget the password, you will not be able to open and access the database.


        © 2003 - 2024 ComponentAce  | .net zip component | barcode for .net | delphi zip component | delphi database Nov 21, 2024