MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / deriveKey

Function deriveKey

packages/plugins/encrypted-secrets/src/index.ts:43–43  ·  view source on GitHub ↗
(master: string)

Source from the content-addressed store, hash-verified

41
42/** Derive a 32-byte AES key from an arbitrary-length master key string. */
43const deriveKey = (master: string): Buffer => scryptSync(master, KEY_SALT, 32);
44
45const encryptSecret = (key: Buffer, plaintext: string): Effect.Effect<string, StorageError> =>
46 Effect.try({

Callers 2

index.test.tsFile · 0.90
index.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected