db

package
v0.26.0-alpha.27 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 3, 2019 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

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

func EncryptDatabase(oldPath string, newPath string, key string) error

EncryptDatabase encrypts an unencrypted database with key

func MigrateDBFile

func MigrateDBFile(oldPath string, newPath string, oldKey string, newKey string) error

func MigrateDBKeyKdfIterations

func MigrateDBKeyKdfIterations(oldPath string, newPath string, key string) error

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

func Open

func Open(path string, key string, kdfIter int) (*sql.DB, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL