File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
packages/powersync_sqlcipher Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ This package (`powersync_sqlcipher`) is the PowerSync client SDK for Flutter wit
1010
1111If you do not require encryption, we recommend using the [ ` powersync ` ] ( /packages/powersync/README.md ) SDK.
1212
13-
1413### Installing PowerSync with SQLCipher encryption in your own project
1514
1615Install the latest version of the package, for example:
@@ -21,7 +20,6 @@ flutter pub add powersync_sqlcipher
2120
2221Version history can be found [ here] ( https://pub.dev/packages/powersync_sqlcipher/versions ) .
2322
24- )
2523### Usage
2624
2725This SDK requires a slightly different setup to the ` powersync ` package in order to encrypt the local database:
@@ -33,7 +31,7 @@ import 'package/powersync_sqlcipher/powersync.dart';
3331late final PowerSyncDatabase db;
3432
3533final cipherFactory = PowerSyncSQLCipherOpenFactory(
36- path: path, key: "sqlcipher-encryption-key");
34+ path: path, key: "sqlcipher-encryption-key"); // https://www.zetetic.net/sqlcipher/sqlcipher-api/#key
3735
3836db = PowerSyncDatabase.withFactory(cipherFactory, schema: schema);
3937```
You can’t perform that action at this time.
0 commit comments