Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/sessions / / deriveSessionExportKey

Function: deriveSessionExportKey()

ts
function deriveSessionExportKey(passphrase, salt): Promise<Uint8Array<ArrayBufferLike>>;

Defined in: packages/sessions/src/export/writer.ts:222

Derive a 32-byte AES key from a passphrase + salt. Exposed for symmetry with the importer, which must supply the same salt to produce the same key.

Parameters

ParameterType
passphrasestring | Uint8Array&lt;ArrayBufferLike&gt;
saltUint8Array

Returns

Promise<Uint8Array&lt;ArrayBufferLike&gt;>

Stable