Repository navigation
Document PBKDF2 benchmarks: desktop and Android evidence - #14
Merged
Merged
Conversation
WebReflection
force-pushed
the
password-pbkdf2-benchmark
branch
from
November 25, 2026 21:53
e95fc5f to
7032d2d
Compare
WebReflection
force-pushed
the
password-pbkdf2-benchmark
branch
from
November 25, 2026 21:57
7032d2d to
7751f51
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Supersedes: #13
Summary
Adds desktop and Android PBKDF2-HMAC-SHA-256 benchmark evidence plus a standalone reproducible browser demo and a complete password implementation proposal.
Proposed implementation
pepper, never stored in the envelope.iterationsandSHAvalues.encrypt,decrypt,buffer,format, andalphabetoutput behavior preserved.Reproducible demo
benchmarks/password-pbkdf2.htmlperforms five runs for 8192, 32000, 64000, 128000, and 600000 iterations. It timesimportKey(PBKDF2)plusderiveKey(AES-GCM 256), reports the median and all five samples, and does not encrypt or decrypt payload data.Desktop evidence
Apple M5 Max, macOS arm64, Node.js v26.3.0:
Android evidence
ASUS_AI2302 ROG Phone 8, Snapdragon 8 Gen 2, Android 15, Chrome 157:
A repeat run produced 64k: 9.60 ms, 128k: 23.20 ms, and 600k: 82.30 ms.
Recommendation
32,000 iterations balances this utility’s mobile-first latency and offline guessing work factor. 64,000–128,000 remains available through
iterationswhere extra latency is acceptable. 600,000+ remains suitable for server/high-security profiles. Weak passwords should additionally use a server-only pepper.This PR does not merge, publish, change package version, or release the proposal.