You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
No db encryption key support for React Native #11737
Currently, TypeORM does not provide a way to specify an encryption key when using SQLite databases in React Native environments (e.g., with react-native-quick-sqlite or @op-engineering/op-sqlite). This PR adds support for passing an optional encryptionKey property through the connection options. The key is then included in the database initialization call, enabling developers to use encrypted SQLite databases via libraries such as SQLCipher.
Expected Behavior
Expected Behavior
• Developers can now securely open or create encrypted SQLite databases in React Native using:
Currently, TypeORM does not provide a way to specify an encryption key when using SQLite databases in React Native environments (e.g., with @op-engineering/op-sqlite).
Steps to reproduce
Create database connection with options including encryptionKey with an encryption supported database.
Verify that the database is not encrypted.
My Environment
Dependency
Version
Operating System
Node.js version
x.y.zzz
Typescript version
x.y.zzz
TypeORM version
x.y.zzz
Additional Context
This PR adds support for passing an optional encryptionKey property through the connection options. The key is then included in the database initialization call, enabling developers to use encrypted SQLite databases via libraries such as SQLCipher.
Relevant Database Driver(s)
aurora-mysql
aurora-postgres
better-sqlite3
cockroachdb
cordova
expo
mongodb
mysql
nativescript
oracle
postgres
react-native
sap
spanner
sqlite
sqlite-abstract
sqljs
sqlserver
Are you willing to resolve this issue by submitting a Pull Request?
Activity