MCPcopy Index your code
hub / github.com/garrytan/gstack / getCachedDerivedKey

Function getCachedDerivedKey

browse/src/cookie-import-browser.ts:449–455  ·  view source on GitHub ↗
(cacheKey: string, password: string, iterations: number)

Source from the content-addressed store, hash-verified

447}
448
449function getCachedDerivedKey(cacheKey: string, password: string, iterations: number): Buffer {
450 const cached = keyCache.get(cacheKey);
451 if (cached) return cached;
452 const derived = deriveKey(password, iterations);
453 keyCache.set(cacheKey, derived);
454 return derived;
455}
456
457async function getDerivedKeys(match: BrowserMatch): Promise<Map<string, Buffer>> {
458 if (match.platform === 'darwin') {

Callers 1

getDerivedKeysFunction · 0.85

Calls 3

deriveKeyFunction · 0.85
setMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected