📚 Encyclopedia

Security & Cryptography · updated 2026-10-13

App lock, PINs and brute-force lockout on Android

androidapp-lockpinpbkdf2lockoutbiometricflag-secureprivacy

Lessons from adding an app lock, a parent PIN, and "private conversations" to the Message SMS app.

Storing the PIN

Hash with PBKDF2 and a random salt; never store the PIN. Keep the maximum PIN length in one constant shared by UI and verifier.

Lockout that cannot be cheated

What the lock must actually protect

Private conversations

See also

Linked from

Sources: message memory (project_pending_work v2.21.0, v2.22.0), phone memory (kid-phone-project kid mode PIN)