(password: string, iterations: number)
| 443 | // ─── Internal: Keychain Access (async, 10s timeout) ───────────── |
| 444 | |
| 445 | function deriveKey(password: string, iterations: number): Buffer { |
| 446 | return crypto.pbkdf2Sync(password, 'saltysalt', iterations, 16, 'sha1'); |
| 447 | } |
| 448 | |
| 449 | function getCachedDerivedKey(cacheKey: string, password: string, iterations: number): Buffer { |
| 450 | const cached = keyCache.get(cacheKey); |
no outgoing calls
no test coverage detected