fastsecrets

secrets-index, our public benchmark

Don't trust us. Check it.

With a key file, fastsecrets beat every tool we tested on two Macs and a Linux server. With the key locked in the Secure Enclave chip, it beat every tool that asks the chip on each read. One honest catch: fnox's background helper is faster on the chip, because it keeps your secrets decrypted in memory the whole time it runs. Its row sits beside ours in every chip table below.

Research footnote

Protocol v0.3.1. Per measured op; there is no dump row; counts are for the default build. "Software" means an unencrypted key file at rest plus a names-only index. Chip numbers are compared with the cache-free field (fnox, sops), with fnox's plaintext-cache daemon row shown beside them. Medians of session medians, in milliseconds.

How to read the tables

  • One table per mode per machine. Each row is one operation: get1 reads one secret, get5 five, get1big a 4 KB value, run1 and run5 start a child program with secrets in its environment, run1-masked also filters its output, miss and wrongkey must fail cleanly, cold is the first read after caches are cleared, par20 is 20 reads at once, and the get1.s500, s5000 and scope5 rows use larger stores.
  • "Fastest rival in this field" is the rival row with the lowest median for that op. The last column is the worst verdict against every rival in the field.
  • A win has to be clear. A small or uncertain gap counts as a tie.
  • No paired comparison means the rival ran in the separate slow pass (median over 250 ms), so the protocol gives no verdict. Those rows are not counted as wins.
  • No cross-machine comparisons. Each machine stands alone.
Research footnote

A win needs the 95% bootstrap interval of the paired median difference to exclude zero and the difference to exceed both 0.5 ms and 5% of the faster row. Otherwise it is a tie.

macOS, Apple M5 Pro (18 cores)

Research footnote

Generated from expected/headline.md and expected/claims_tables.md (M5, sessions kept: 15 of 15). fastsecrets rows are the default build.

  • Software mode (unencrypted key file at rest plus a names-only index), default build fastsecrets vs every rival row with a plaintext key file, per measured op (13 ops; fastsecrets has no dump row): 39 win, 4 no paired comparison out of 43 comparisons. get1 median: fastsecrets 3.24 ms, fnox 6.74 ms, fnox daemon 7.93 ms, sops 12.82 ms. 4 not paired because the two rows ran in different passes (rows with a median over 250 ms run in a separate slow pass; pass.gpg.get5 fell in different passes in different sessions): dotenvx.file.get1 (455.92 ms), dotenvx.npm-node.get1 (531.84 ms), pass.gpg.cold (453.67 ms), pass.gpg.get5 (207.57 ms).
  • Chip mode (Secure Enclave key, no prompt), default build vs the cache-free field (fnox and sops chip rows): 25 win out of 25 comparisons. Beside it, vs fnox's plaintext-cache daemon row fnox.se-tag-daemon: 2 win, 7 LOSS out of 9. get1 median: fastsecrets 9.02 ms, fnox 17.90 ms, sops 25.68 ms, fnox daemon (cache) 8.00 ms.
  • Sessions used: 15 of 15.

Chip tables show the se-p256tag rows (the cold row exists only as se-tag). The chip bullet above quotes the se-tag get1 row; the two tie within the rule. Every recipient type has its own rows in expected/claims_tables.md.

Software mode: default build vs every rival with a plaintext key file

opfastsecrets, msfastest rival in this fieldrival, msdifference, ms [95% CI]vs that rivalvs every rival in the field
cold3.69fnox.soft.cold7.22-3.59 [-4.04, -3.26]winno paired comparison with pass.gpg.cold (slow pass)
get13.24secretspec.dotenv-plaintext.get15.14-1.93 [-2.01, -1.86]winno paired comparison with dotenvx.file.get1 (slow pass)
get1.s5003.34fnox.soft.get1.s5008.07-4.80 [-4.95, -4.70]winwins vs all 1
get1.s50004.56fnox.soft.get1.s500023.11-18.56 [-18.98, -18.20]winwins vs all 1
get1.scope53.27fnox.soft.get1.scope56.76-3.51 [-3.61, -3.43]winwins vs all 1
get1big3.22fnox.soft.get1big6.66-3.43 [-3.54, -3.33]winwins vs all 3
get53.21fnox.soft.get56.92-3.70 [-3.85, -3.61]winno paired comparison with pass.gpg.get5 (slow pass)
miss3.02fnox.soft.miss6.48-3.42 [-3.57, -3.33]winwins vs all 4
par208.31fnox.soft.par2016.04-7.09 [-7.46, -6.51]winwins vs all 2
run14.70fnox.soft.run18.28-3.65 [-3.79, -3.53]winwins vs all 6
run1-masked5.82fnox.soft.run1-masked8.43-2.62 [-2.73, -2.53]winwins vs all 4
run54.75fnox.soft.run58.63-3.91 [-4.02, -3.83]winwins vs all 2
wrongkey3.04age.soft.wrongkey3.69-0.67 [-0.70, -0.65]winwins vs all 1

Chip mode (Secure Enclave, no prompt): the cache-free field, fnox and sops

opfastsecrets, msfastest rival in this fieldrival, msdifference, ms [95% CI]vs that rivalvs every rival in the field
cold
se-tag
9.49fnox.se-tag.cold [cross-type piv-p256 vs p256tag]18.99-9.40 [-10.43, -8.56]winwins vs all 1
get1
se-p256tag
9.05fnox.se-tag.get117.90-8.74 [-8.95, -8.56]winwins vs all 2
get1big
se-p256tag
9.01fnox.se-tag.get1big17.86-8.77 [-8.95, -8.56]winwins vs all 2
get5
se-p256tag
9.06fnox.se-tag.get561.26-52.00 [-52.63, -51.43]winwins vs all 1
miss
se-p256tag
3.07fnox.se-tag.miss6.53-3.42 [-3.52, -3.32]winwins vs all 2
par20
se-p256tag
93.25fnox.se-tag.par20119.56-25.72 [-27.02, -24.81]winwins vs all 1
run1
se-p256tag
10.53fnox.se-tag.run119.36-8.91 [-9.09, -8.75]winwins vs all 2
run1-masked
se-p256tag
11.77fnox.se-tag.run1-masked19.66-7.80 [-7.98, -7.63]winwins vs all 1
run5
se-p256tag
10.61fnox.se-tag.run562.86-51.99 [-52.63, -51.38]winwins vs all 1

Chip mode beside fnox's plaintext-cache daemon row, fnox.se-tag-daemon

opfastsecrets, msfastest rival in this fieldrival, msdifference, ms [95% CI]vs that rivalvs every rival in the field
cold
se-tag
9.49fnox.se-tag-daemon.cold (daemon)75.25-65.64 [-67.10, -64.61]winwins vs all 1
get1
se-p256tag
9.05fnox.se-tag-daemon.get1 (daemon)8.00+1.04 [+0.92, +1.12]lossloss
get1big
se-p256tag
9.01fnox.se-tag-daemon.get1big (daemon)8.07+0.98 [+0.86, +1.07]lossloss
get5
se-p256tag
9.06fnox.se-tag-daemon.get5 (daemon)8.00+1.03 [+0.89, +1.15]lossloss
miss
se-p256tag
3.07fnox.se-tag-daemon.miss (daemon)6.47-3.39 [-3.51, -3.30]winwins vs all 1
par20
se-p256tag
93.25fnox.se-tag-daemon.par20 (daemon)19.83+73.91 [+73.45, +74.20]lossloss
run1
se-p256tag
10.53fnox.se-tag-daemon.run1 (daemon)9.57+0.97 [+0.82, +1.09]lossloss
run1-masked
se-p256tag
11.77fnox.se-tag-daemon.run1-masked (daemon)9.70+2.10 [+2.00, +2.17]lossloss
run5
se-p256tag
10.61fnox.se-tag-daemon.run5 (daemon)9.64+0.93 [+0.84, +1.04]lossloss

macOS, MacBook Air, Apple M4 (10 cores)

Research footnote

Generated from expected/headline.md and expected/claims_tables.md (AIR, sessions kept: 15 of 15). fastsecrets rows are the default build.

  • Software mode (unencrypted key file at rest plus a names-only index), default build fastsecrets vs every rival row with a plaintext key file, per measured op (13 ops; fastsecrets has no dump row): 41 win, 2 no paired comparison out of 43 comparisons. get1 median: fastsecrets 2.92 ms, fnox 5.88 ms, fnox daemon 7.18 ms, sops 11.62 ms. 2 not paired because the two rows ran in different passes (rows with a median over 250 ms run in a separate slow pass; pass.gpg.get5 fell in different passes in different sessions): dotenvx.file.get1 (476.08 ms), dotenvx.npm-node.get1 (564.70 ms).
  • Chip mode (Secure Enclave key, no prompt), default build vs the cache-free field (fnox and sops chip rows): 25 win out of 25 comparisons. Beside it, vs fnox's plaintext-cache daemon row fnox.se-tag-daemon: 2 win, 7 LOSS out of 9. get1 median: fastsecrets 8.52 ms, fnox 16.27 ms, sops 23.61 ms, fnox daemon (cache) 7.15 ms.
  • Sessions used: 15 of 15.

Chip tables show the se-p256tag rows (the cold row exists only as se-tag). The chip bullet above quotes the se-tag get1 row; the two tie within the rule. Every recipient type has its own rows in expected/claims_tables.md.

Software mode: default build vs every rival with a plaintext key file

opfastsecrets, msfastest rival in this fieldrival, msdifference, ms [95% CI]vs that rivalvs every rival in the field
cold2.94fnox.soft.cold5.67-2.71 [-2.74, -2.68]winwins vs all 3
get12.92secretspec.dotenv-plaintext.get14.51-1.56 [-1.63, -1.45]winno paired comparison with dotenvx.file.get1 (slow pass)
get1.s5003.07fnox.soft.get1.s5007.38-4.30 [-4.33, -4.28]winwins vs all 1
get1.s50004.31fnox.soft.get1.s500022.64-18.34 [-18.38, -18.30]winwins vs all 1
get1.scope53.01fnox.soft.get1.scope56.00-2.97 [-3.00, -2.94]winwins vs all 1
get1big2.93fnox.soft.get1big5.85-2.94 [-2.97, -2.90]winwins vs all 3
get52.95fnox.soft.get56.24-3.28 [-3.31, -3.25]winwins vs all 4
miss2.74fnox.soft.miss5.70-2.94 [-2.97, -2.91]winwins vs all 4
par2010.18fnox.soft.par2020.62-10.45 [-10.52, -10.28]winwins vs all 2
run14.28fnox.soft.run17.38-3.09 [-3.13, -3.06]winwins vs all 6
run1-masked5.03fnox.soft.run1-masked7.44-2.42 [-2.44, -2.39]winwins vs all 4
run54.33fnox.soft.run57.72-3.40 [-3.43, -3.37]winwins vs all 2
wrongkey2.76age.soft.wrongkey3.36-0.60 [-0.62, -0.58]winwins vs all 1

Chip mode (Secure Enclave, no prompt): the cache-free field, fnox and sops

opfastsecrets, msfastest rival in this fieldrival, msdifference, ms [95% CI]vs that rivalvs every rival in the field
cold
se-tag
8.56fnox.se-tag.cold [cross-type piv-p256 vs p256tag]16.03-7.39 [-7.50, -7.30]winwins vs all 1
get1
se-p256tag
8.54fnox.se-tag.get116.27-7.74 [-7.79, -7.69]winwins vs all 2
get1big
se-p256tag
8.51fnox.se-tag.get1big16.31-7.78 [-7.84, -7.73]winwins vs all 2
get5
se-p256tag
8.55fnox.se-tag.get555.99-47.18 [-47.32, -46.99]winwins vs all 1
miss
se-p256tag
2.77fnox.se-tag.miss5.71-2.90 [-2.93, -2.88]winwins vs all 2
par20
se-p256tag
95.98fnox.se-tag.par20127.38-31.67 [-31.88, -31.47]winwins vs all 1
run1
se-p256tag
9.94fnox.se-tag.run117.87-7.92 [-7.99, -7.85]winwins vs all 2
run1-masked
se-p256tag
10.71fnox.se-tag.run1-masked17.93-7.22 [-7.28, -7.15]winwins vs all 1
run5
se-p256tag
9.93fnox.se-tag.run557.57-47.32 [-47.47, -47.11]winwins vs all 1

Chip mode beside fnox's plaintext-cache daemon row, fnox.se-tag-daemon

opfastsecrets, msfastest rival in this fieldrival, msdifference, ms [95% CI]vs that rivalvs every rival in the field
cold
se-tag
8.56fnox.se-tag-daemon.cold (daemon)73.53-64.21 [-64.71, -64.05]winwins vs all 1
get1
se-p256tag
8.54fnox.se-tag-daemon.get1 (daemon)7.15+1.48 [+1.41, +1.52]lossloss
get1big
se-p256tag
8.51fnox.se-tag-daemon.get1big (daemon)7.17+1.45 [+1.39, +1.49]lossloss
get5
se-p256tag
8.55fnox.se-tag-daemon.get5 (daemon)7.17+1.49 [+1.43, +1.53]lossloss
miss
se-p256tag
2.77fnox.se-tag-daemon.miss (daemon)5.69-2.89 [-2.91, -2.87]winwins vs all 1
par20
se-p256tag
95.98fnox.se-tag-daemon.par20 (daemon)23.31+72.46 [+72.26, +72.62]lossloss
run1
se-p256tag
9.94fnox.se-tag-daemon.run1 (daemon)8.63+1.38 [+1.32, +1.44]lossloss
run1-masked
se-p256tag
10.71fnox.se-tag-daemon.run1-masked (daemon)8.69+2.10 [+2.04, +2.16]lossloss
run5
se-p256tag
9.93fnox.se-tag-daemon.run5 (daemon)8.68+1.38 [+1.31, +1.44]lossloss

Linux VPS, AMD EPYC 9354P (8 cores)

Research footnote

Generated from expected/headline.md and expected/claims_tables_vps.md (VPS, sessions kept: 21 of 21). fastsecrets rows are the default build.

  • Software mode (unencrypted key file at rest plus a names-only index), default build fastsecrets vs every rival row with a plaintext key file, per measured op (13 ops; fastsecrets has no dump row): 41 win, 3 no paired comparison out of 44 comparisons. get1 median: fastsecrets 1.59 ms, fnox 11.59 ms, fnox daemon 12.77 ms, sops 36.64 ms. 3 not paired because the two rows ran in different passes (rows with a median over 250 ms run in a separate slow pass; pass.gpg.get5 fell in different passes in different sessions): dotenvx.file.get1 (1501.39 ms), dotenvx.file.run1 (353.40 ms), dotenvx.file.run1-masked (350.44 ms).
  • Chip mode: not measured (no Secure Enclave on Linux).
  • Sessions used: 21 of 21.

Software mode: default build vs every rival with a plaintext key file

opfastsecrets, msfastest rival in this fieldrival, msdifference, ms [95% CI]vs that rivalvs every rival in the field
cold1.49fnox.soft.cold10.74-9.09 [-10.18, -8.52]winwins vs all 3
get11.59age.soft-sed.get1 (unranked: composition)7.65-6.01 [-6.42, -5.68]winno paired comparison with dotenvx.file.get1 (slow pass)
get1.s5002.07fnox.soft.get1.s50018.04-15.64 [-16.46, -14.90]winwins vs all 1
get1.s50006.61fnox.soft.get1.s500083.47-76.78 [-79.30, -74.24]winwins vs all 1
get1.scope52.27fnox.soft.get1.scope512.22-9.75 [-10.24, -9.26]winwins vs all 1
get1big1.64fnox.soft.get1big11.66-10.02 [-10.57, -9.44]winwins vs all 3
get51.63fnox.soft-daemon.get5 (daemon)12.48-10.91 [-11.68, -10.34]winwins vs all 4
miss1.45fnox.soft.miss10.79-9.23 [-9.81, -8.71]winwins vs all 4
par207.85fnox.soft.par2035.45-27.00 [-28.82, -25.69]winwins vs all 2
run11.95fnox-lite.soft.run111.34-9.20 [-9.79, -8.74]winno paired comparison with dotenvx.file.run1 (slow pass)
run1-masked2.95fnox.soft.run1-masked13.08-9.96 [-10.46, -9.53]winno paired comparison with dotenvx.file.run1-masked (slow pass)
run52.02fnox.soft.run513.56-11.58 [-12.26, -10.96]winwins vs all 2
wrongkey1.34age.soft.wrongkey5.35-3.90 [-4.15, -3.71]winwins vs all 1

macOS Keychain (reference)

Reference rows, kept outside the claim. Software mode wins every row in the tables below, on both Macs.

The keychain has a lower median than our chip mode: 6.64 vs 9.05 ms for one read on the M5 (6.31 vs 8.54 ms on the Air), and 24.97 vs 93.25 ms when 20 separate programs each read one secret at the same moment on the M5 (par20). securityd is a resident daemon that keeps the keychain unlocked in memory; chip mode goes to the Secure Enclave on every read.

Research footnote

The benchmark read a throwaway keychain file with Apple's security tool, served by the securityd daemon. It did not read your login keychain, because the login keychain can raise a dialog and the protocol skips any row that can. A real login keychain was not measured; we expect it to be no faster, and it can prompt. The chip and keychain medians above come from different tables, so they carry no paired verdict.

Our old bash tool's opt-in keychain path, secrets-bash.keychain-cache.get1 (also on a throwaway keychain file), took 40.53 ms on the M5 and 33.38 ms on the Air: bash start and its scripts, then the same security call. Its stats row lists its resident process as "none". securityd serves it, as it does the security rows.

Apple M5 Pro

Research footnote

Generated from expected/claims_tables.md (M5, sessions kept: 15 of 15), section "Software mode vs OS keychain rows (shown separately)".

Software mode beside a keychain file read with security (macOS Keychain, reference)

opfastsecrets, msfastest rival in this fieldrival, msdifference, ms [95% CI]vs that rivalvs every rival in the field
get13.24security.keychain-file.get1 (daemon)6.64-3.44 [-3.51, -3.38]winwins vs all 1
miss3.02security.keychain-file.miss (daemon)8.18-5.14 [-5.26, -5.03]winwins vs all 1
par208.31security.keychain-file.par20 (daemon)24.97-15.86 [-17.11, -14.52]winwins vs all 1

MacBook Air, M4

Research footnote

Generated from expected/claims_tables.md (AIR, sessions kept: 15 of 15), section "Software mode vs OS keychain rows (shown separately)".

Software mode beside a keychain file read with security (macOS Keychain, reference)

opfastsecrets, msfastest rival in this fieldrival, msdifference, ms [95% CI]vs that rivalvs every rival in the field
get12.92security.keychain-file.get1 (daemon)6.31-3.36 [-3.41, -3.32]winwins vs all 1
miss2.74security.keychain-file.miss (daemon)7.61-4.83 [-4.88, -4.77]winwins vs all 1
par2010.18security.keychain-file.par20 (daemon)23.36-13.14 [-13.19, -13.08]winwins vs all 1

Method

  • Fixture: 51 dummy values. Each entrant gets its own store built from it, in its own directory.
  • Default mode: every entrant runs in its documented default mode for the platform, compared mode to mode. Secure Enclave comparisons use the same recipient type for every tool (except cold, where our only chip row is a different type; it is tagged cross-type).
  • Repeated and shuffled: every case runs hundreds of times per session, in a random order, over many sessions per machine. Every attempt is recorded, failures included.
  • No blended score. One table per operation per machine.
  • Conflict of interest, stated up front: the benchmark's author wrote one entrant. It is tagged [author] everywhere. Some protocol changes came after data was seen, and each one is dated in PROTOCOL.md.
Research footnote

Measurement: a fresh process per sample, wall time from spawn to exit, a 10 s deadline per case. Every attempt is recorded with its outcome; a case is ranked only if at least 99% of attempts meet its contract.

Sessions: 20 warmup rounds and 300 timed rounds, cases in a seeded random order per round, load recorded every round. A session is discarded if load exceeds cores/2 for more than 5% of rounds. 15 sessions per Mac (main, par20 and cold), 21 on the VPS.

Statistics: median of session medians; per-round paired differences inside each session, block bootstrap over sessions and 10-round blocks, 95% interval on the median difference.

Protocol versions: the protocol was frozen as v0.2 before the product changes were measured; v0.3 and v0.3.1 were amended after data was seen.

How secrets-index measures. Fixtures of 51 dummy values go by stdin to coord.py, the coordinator and judge, which runs seeded rounds through sb-spawner, one sandboxed helper per entrant, against the pinned entrant tool and the sb-child program that prints names and a digest. On macOS each helper has its own sandbox-exec profile; on Linux each entrant has its own uid in a container with no network. Every attempt goes into the session data of 300 timed rounds; the load rule discards sessions over cores/2. stats.py computes paired, bootstrapped comparisons per op, verdicts are win or tie, and expected/ holds the published tables. verify.py checks the sha256 manifest, recomputes and diffs byte for byte.
A coordinator outside every sandbox runs the rounds, records every attempt and ships the data.

Verify the published numbers

git clone https://github.com/abe238/secrets-index && cd secrets-index
python3 verify.py            # 4 to 7 minutes on an Apple M5 Pro
python3 verify.py --quick    # about 10 s

Python 3, standard library only. --quick skips the slowest checks.

verify.py recomputes every table and every verdict from the raw data and compares the result with the published output. It writes nothing inside the repo and exits non-zero on any mismatch.

Research footnote

Tested with Python 3.9.6 and 3.14.4. verify.py checks the data manifest (sha256 of every file) and the harness pins recorded in every session, recomputes every stats table with the same harness/stats.py that produced them, runs two independent recomputes that do not import it, reruns every claim verdict and diffs everything byte for byte against expected/. --quick skips the claim bootstraps and the headline check.

The quick mode only, in a fresh clone. The full run also reruns every claim bootstrap.

Rerun it on your machine

RERUN.md has the exact commands, timing estimates and hardware notes for macOS and Linux. Known gaps are listed in GAPS.md.

  • macOS: each helper runs under its own sandbox profile, denied the home folder and the other entrants.
  • Linux: each entrant gets its own user in a container with no network.
  • A rerun is a new session set of your own. The protocol forbids comparing it across machines.

Add your tool

Open a "Request a tool" issue on GitHub, or add it yourself (RERUN.md, "Adding a tool") and open a pull request.

Research footnote

Adding a tool takes a pinned install, a generator entry with its documented default mode and exact argv, 5 of 5 on validate, and a new session set. New harness hashes are never pooled with the published sessions.

The code, the data and the published outputs are Apache-2.0. Every table on this page is generated from expected/.