FireDAC.Phys.SQLite.TFDSQLiteBackup.Password
Delphi
property Password: String read FPassword write FPassword;
C++
__property System::UnicodeString Password = {read=FPassword, write=FPassword};
Contents
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | published | FireDAC.Phys.SQLite.pas FireDAC.Phys.SQLite.hpp |
FireDAC.Phys.SQLite | TFDSQLiteBackup |
Description
The password for the source database.
Use Password to specify a password for the source database. The destination password may be different from the source database password.
You can specify the cipher algorithm prefix in the Password property value using the format: <prefix>:<password>
.
Note: If a source database file was created with a non-default cipher algorithm (aes-256) by specifying:
- the Encrypt connection definition parameter,
- or a cipher algorithm prefix for the Password connection definition parameter,
the prefix must be specified, otherwise the "Out of memory" exception will be raised.
Example
// DB is encrypted using aes-ecb-128 cipher algorithm FDConnection1.Params.Add('Password=aes-ecb-128:12345'); FDConnection1.Connected := True; .... // specify aes-ecb-128 cipher algorithm for source database FDSQLiteBackup1.Password := 'aes-ecb-128:12345';