Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Neon 5 min read Deep dive mediumAdept

Password Complexity, Hash Iterations and Entropy

Neon can safely cut SCRAM-SHA-256 PBKDF2 iterations from 4096 to 1 to reduce connection CPU cost, because its database passwords are randomly generated and dictionary attacks therefore don't apply. Brute-force strength is modeled as password entropy plus log2(iterations), so dropping 4096 iterations costs 12 bits, roughly recovered by adding about two characters and allowing repeated characters (14 chars at 1 iteration ≈ 83 bits vs. 80 bits today). Entropy beyond 256 bits (about 43 alphanumeric characters) adds nothing since the derived ClientKey becomes the target, and the reasoning does not hold for user-chosen passwords.

Assumes: password hashing basicsentropy in bitsPBKDF2

Related posts

  • How we avoided side-channels in our new post-quantum Go cryptography libraries

    Trail of Bits hardMaster

    Trail of Bits released pure-Go, open-source implementations of the NIST post-quantum signature schemes ML-DSA (FIPS-204) and SLH-DSA (FIPS-205), engineered to run in constant time. SLH-DSA is hash-based and straightforward, but ML-DSA's Decompose step divides by 2γ2, and secret-dependent division and branching are what enabled the KyberSlash timing attack. The fix replaces branches with mask-based constant-time conditional swaps and replaces division with a bit-by-bit constant-time long division, then speeds that up with Barrett reduction using precomputed reciprocals for the two fixed γ2 values plus two branchless correction steps.

  • PVF: A novel metric for understanding AI systems’ vulnerability against SDCs in model parameters

    Meta Engineering hardMaster

    Parameter vulnerability factor (PVF) is a metric, modeled on the architectural vulnerability factor (AVF), that defines the probability that a corruption in a given model parameter (or group of parameters) produces an incorrect output, estimated through large-scale fault injection. On DLRM inference, embedding tables show low PVF because of sparsity, while top-MLP reaches 0.4% under a single bit flip and 40% under 128 flips, versus 10% for bot-MLP. That gap argues for selectively protecting the most vulnerable parameters in hardware rather than protecting everything or nothing. A companion method, Dr. DNA, detects and mitigates SDCs from distributions of neuron activations, reaching about 95% average detection across 10 DNNs with under 1% memory and 2.5% latency overhead.

  • How Meta is improving password security and preserving privacy

    Meta Engineering mediumAdept

    Meta's Private Data Lookup (PDL) checks new passwords against breached-password datasets using Private Set Intersection, so the server learns neither the attempted password nor whether it matched. The client sends a per-request blinded hash H(p)^a, the server double-blinds it with a long-term key b and returns blinded hashes of leaked passwords, and the client unblinds and matches locally. To make this practical, leaked passwords are pre-blinded offline, the dataset is sharded by a short hash-prefix index, and returned values are truncated to cut bandwidth. The check flags a password appearing anywhere in a breach, not just a matching username/password pair, and is deployed in Enterprise Center's account creation and reset flows.

  • Bun v0.6.8

    Bun mediumAdept

    Bun v0.6.8 adds a built-in Bun.password API for argon2 (default) and bcrypt password hashing. It is built on Zig's std.crypto.pwhash and encodes the algorithm and parameters into PHC or Modular Crypt Format strings, so verify needs no extra metadata. bun:test gains mock(), spyOn, a jest.fn/jest.spyOn polyfill and toMatchObject, with mock creation benchmarked at roughly 80x faster than Jest. Other changes include a breaking bun:sqlite .values() change to return [] instead of null, an experimental WebSocket inspector speaking the WebKit debugger protocol, and fixes for CJS/ESM interop detection in lodash-es, the RegExp v flag and workspace lifecycle scripts.

  • How Meta built large-scale cryptographic monitoring

    Meta Engineering mediumAdept

    Meta logs every operation in FBCrypto, its managed cryptographic library, without sampling by aggregating identical events into per-event counts in an in-process buffer and flushing them periodically to Scribe, with data landing in Scuba and Hive. The buffer is a folly::ConcurrentHashMap shared across threads. Randomized first-flush delays smooth write spikes, and derived-key operations are rolled up under the parent key name to cut volume while still giving a pessimistic count for detecting key overuse. The resulting dataset drives key rotation, inventories of weak and quantum-vulnerable algorithms for migration, migration-safety alarms based on success rates, and fleet-wide library version tracking. Remaining challenges include Scribe and Scuba capacity and flushing safely at shutdown.

The quest for software engineering knowledge.

Look:
Layout: