Security based Android interview questions and answers

How do you secure shared preference from exposure?

One of the latest solutions is to use Jetpack Datastore instead of traditional shared preference. As it’s not stable yet, we can use an encrypted shared preference library or we can manually encode and decode the key-value pairs.

I recommend you to go through the following article to learn in detail how to use the encrypted shared-preference library and manual encoding & decoding the key-value pairs.

What is certificate pinning and how do you implement it in android apps?

Communicating with the servers is a common task in any modern mobile application. Using HTTPS alone isn’t enough to provide secure communication. Many hackers interfere with communications to mislead servers and clients. This is known as a middle man attack. To establish a secure line to the server, we need to implement certificate pinning.

To learn more about certificate pinning and different ways to implement it, read the following article:



Aaaaa

Comments

Popular posts from this blog

Jetpack Compose based Android interview and questions

Architecture Components based Android interview questions and answers