HomeCybersecurityMobile App Data-at-Rest (2D): PIN-Derived Key vs Offline Brute-Force

Mobile App Data-at-Rest (2D): PIN-Derived Key vs Offline Brute-Force

Interactive 2D multi-panel model of a stolen phone's locally encrypted vault: tune the unlock PIN's keyspace, the key-derivation function and its work factor, and the attacker's cracking hardware to see the real trade-off between unlock latency and offline brute-force time.

Cybersecurity2DAdvanced60 FPS📱 Mobile-adapted⇄ 3D version
2d-mobile-data-protection-privacy ↗ Open standalone

When a phone is lost or stolen, the only thing standing between an attacker and a mobile app's locally encrypted data is the key-derivation function protecting the encryption key — there is no server, no lockout counter, no network throttling to fall back on. This 2D multi-panel simulator models that exact offline scenario: pick a PIN length and character set to fix the keyspace, choose a key-derivation algorithm (PBKDF2-SHA256, scrypt or Argon2id) and its work factor, and pick the attacker's hardware tier, then watch the legitimate unlock latency and the attacker's offline guesses-per-second respond in real time across four linked panels — a pannable/zoomable guess-swarm field, a log-scale keyspace bar, the cost-vs-work-factor curve, and a live algorithm comparison chart. A memory-hard KDF like Argon2id resists parallel cracking hardware far better than PBKDF2 at the same work factor, and raising the work factor is always a direct trade against the app's own unlock speed — the same trade-off every mobile security engineer has to make when choosing how to protect local secure storage.

⚙ Under the hood

A stolen phone's locally encrypted vault is protected only by a key-derivation function turning the user's PIN into an AES key — tune the PIN's keyspace, the KDF (PBKDF2, scrypt, Argon2id) and its work factor, and the attacker's hardware to see the real trade-off between unlock latency and offline brute-force time, across four linked 2D panels: a pannable/zoomable guess-swarm field, a log-scale keyspace bar, the cost-vs-work-factor curve, and a live algorithm comparison chart.

cybersecuritymobile-securityencryptionkey-derivationprivacybrute-force

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)