|
AnyDAC
|
The class allowing to manage SQLite database encryption.
uADPhysSQLite
Use the TADSQLiteSecurity component to add a SQLite database security management capabilities to an application.
To manage a security an application should:
TADSQLiteSecurity = class(TADSQLiteService);
Sets password and encrypts the unencrypted database:
ADSQLiteSecurity1.DriverLink := ADPhysSQLiteDriverLink1; ADSQLiteSecurity1.Database := 'c:\addemo.sdb'; ADSQLiteSecurity1.Password := '12345'; ADSQLiteSecurity1.SetPassword;
Decrypts the encrypted database:
ADSQLiteSecurity1.DriverLink := ADPhysSQLiteDriverLink1; ADSQLiteSecurity1.Database := 'c:\addemo.sdb'; ADSQLiteSecurity1.Password := '12345'; ADSQLiteSecurity1.RemovePassword;
Changes the encrypted database password:
ADSQLiteSecurity1.DriverLink := ADPhysSQLiteDriverLink1; ADSQLiteSecurity1.Database := 'c:\addemo.sdb'; ADSQLiteSecurity1.Password := '12345'; ADSQLiteSecurity1.ToPassword := 'qwerty'; ADSQLiteSecurity1.ChangePassword;
|
What do you think about this topic? Send feedback!
|