What is the best way to hide the keystore password in Android?

后端 未结 2 946
别那么骄傲
别那么骄傲 2020-12-15 01:56

I\'m new to Android development and implementing SSLSockets. After doing some digging I was able to setup a simple server/client that is working. The implementation I feel

2条回答
  •  萌比男神i
    2020-12-15 02:46

    If you truly want to protect the users credentials then you must ask them to verify their identity whenever you want access to the credentials. However most users will get annoyed if you ask them for their password every time they login, so you as the developer must decide how much you care about security vs providing a simple easy interface for your users.

    One option you could consider is to store the passwords but to encrypt the password using a PIN provided by the user. Then whenever the user wants to access their password they simply provide the PIN, which you use to decrypt the password.

提交回复
热议问题