Jetpack Security
May 19 2020 · Video Course (27 mins) · Intermediate
Learn how to use the AndroidX Jetpack Security library for managing security keys and encrypting file and preferences data.
Version
- Kotlin 1.3, Android 6.0, Android Studio 3.6


Learn about the need for the Jetpack Security library, which unifies and simplifies the use of encryption in Android apps.
The Starter Project
2:24Explore the starter project for the course, which includes all the necessary UI code and resources for the sample project.
See how to set up and use encrypted shared preferences, including encryption of both the keys and values.
Get an EncryptedFile
2:45Create a function that will give you access to an EncryptedFile, using an API similar to that for accessing EncryptedSharedPreferences.
Write data into an EncryptedFile, read data back in from the EncryptedFile, and alert the user when there are read or write errors.
Specify the use of advanced encryption for accessing the file system, including the use of the Android StrongBox KeyStore.
Use the AndroidX Biometric library to create a fingerprint prompt, adding an extra layer of security to accessing encrypted data.
Who is this for?
Intermediate Android developers looking to understand how to make their user data more secure via encryption.
Covered concepts
- Key generation
- Encrypted SharedPreferences
- File encryption
- Advanced encryption
- The Biometric Library
Comments