Documentation ¶
Index ¶
- Constants
- func EncryptDatabase(oldPath string, newPath string, key string) error
- func MigrateDBFile(oldPath string, newPath string, oldKey string, newKey string) error
- func MigrateDBKeyKdfIterations(oldPath string, newPath string, key string) error
- func Open(path string, key string, kdfIter int) (*sql.DB, error)
Constants ¶
View Source
const KdfIterationsNumber = 3200
The reduced number of kdf iterations (for performance reasons) which is currently used for derivation of the database key https://github.com/status-im/status-go/pull/1343 https://notes.status.im/i8Y_l7ccTiOYq09HVgoFwA
Variables ¶
This section is empty.
Functions ¶
func EncryptDatabase ¶
EncryptDatabase encrypts an unencrypted database with key
func MigrateDBFile ¶
func MigrateDBKeyKdfIterations ¶
MigrateDBKeyKdfIterations changes the number of kdf iterations executed during the database key derivation. This change is necessary because of performance reasons. https://github.com/status-im/status-go/pull/1343 `sqlcipher_export` is used for migration, check out this link for details: https://www.zetetic.net/sqlcipher/sqlcipher-api/#sqlcipher_export
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.