Files
HackBrowserData/internal/browser
Roger 6e5a6455ac refactor(browser): consolidate decryption and extractor tables (#687)
* refactor(chromium): consolidate decryption and fork variants

Keys are fetched by the first value that needs one, as the secrets design says, so an empty store retrieves none.
One version type, one override table (browsers, kind, extractors), and all Yandex code in yandex.go replace lists that had to agree.

* refactor(chromium): build the password row with a constructor

Every other row of the extractor table is a constructor call; Safari already names its row newPasswordExtractor.

* refactor(browser): build password rows like every other row

A decrypting extractor now reads each file it lists, so Chromium's two login stores and Firefox's key4.db need no
hand-built row. Parse functions lead each call because Go puts the variadic file specs last.

* refactor(browser): declare each browser's sources in one block

Files were declared four ways: literals, three newFileSpec signatures, newDirectorySpec, and withKeyFiles. FileSpec
becomes Source with Path and Fallbacks, so a fallback no longer reads like a second file to read.
2026-11-09 17:25:35 +08:00
..