I have some buttons in an Android app for a password form. I'm intentionally using buttons instead of a text field because of the design (and this is a hobby app.) However, this makes me wonder if this approach could have security vulnerabilities.
I/View: PerformClick: com.google.android.material.button.MaterialButton{dabaa04 VFED..C.. ...p..ID 308,91-462,182 #7f08005d app:id/auth_btn5
I/View: MotionEvent.ACTION_UP: mPrivateFlags: -2128459728, mHasPerformedLongPress: false, mIgnoreNextUpEvent: false
As you can see, the button's ID is logged. This could result in someone with access to these logs to determine the password.
With all of this said, I wonder:
- Let's suppose that the numbers on the buttons are not randomized. Does this lead to a security risk from a practical standpoint (i.e. what's the likelyhood of someone gaining access to the debug logs)?
- What is the best way to circuvent this? Additionally, will this method still allow for the same look?