Graphorin API reference v0.1.0
Graphorin API reference / @graphorin/security / / decryptBundle
Function: decryptBundle()
ts
function decryptBundle(bundle, passphrase): Promise<{
meta: Record<string, unknown>;
values: Record<string, unknown>;
}>;Defined in: packages/security/src/secrets/resolvers/encrypted-file.ts:132
Decrypt a raw bundle into the values map. Used by the resolver and by the EncryptedFileSecretsStore so the wire format stays in one place.
Parameters
| Parameter | Type |
|---|---|
bundle | Buffer |
passphrase | string | Buffer<ArrayBufferLike> |
Returns
Promise<{ meta: Record<string, unknown>; values: Record<string, unknown>; }>