Pick the fix
An app shows BiometricPrompt and, on success, reads the token from plain storage. A security review flags it. Fix?
Hint 1 of 1
What makes the result impossible to fake?
Choose an answer, then open Show answer below to check it.
Show answer
Answer: A Encrypt the token with an auth-bound Keystore key and decrypt with the CryptoObject's cipher after success
Correct. Without real authentication, the key can't decrypt the token.
Why not the others?
- B Show the prompt twice. Still just a UI gate.
- C Use BIOMETRIC_WEAK. Weaker, and still not bound to crypto.
- D Hide the token in a resource file. Anyone can read the APK.