Skip to content

Graphorin API reference v0.5.0


Graphorin API reference / @graphorin/store-sqlite / encryption / cipherSelectionPragmas

Function: cipherSelectionPragmas()

ts
function cipherSelectionPragmas(cipher): readonly string[];

Defined in: packages/store-sqlite/src/encryption/index.ts:37

The cipher-selection PRAGMAs that must run before PRAGMA key on a freshly opened connection (CS-7). sqlite3mc defaults to chacha20, so opening a SQLCipher-v4 database with key alone reads garbage — every keyed open must pin the cipher first.

Parameters

ParameterType
cipherEncryptionCipher

Returns

readonly string[]

Stable