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
| Parameter | Type |
|---|---|
passphrase | string | Uint8Array<ArrayBufferLike> |
salt | Uint8Array |
Returns
Promise<Uint8Array<ArrayBufferLike>>