A sample that demonstrates how to use the Jetpack Security library to encrypt and decrypt files by implementing a simple note taking app.
This sample shows how to implement based file and shared preferences encryption using the Jetpack security library.
The sample shows how to use EncryptedFile
to securely store notes, as well as using
EncryptedSharedPreferences
to store a "master password" that must be entered before
notes can be viewed or edited.
- Android SDK 29
- Jetpack Security Library
This sample uses the Gradle build system. To build this project, use the "gradlew build" command or use "Import Project" in Android Studio.
- Stack Overflow: http://stackoverflow.com/questions/tagged/android
If you've found an error in this sample, please file an issue: https://github.com/android/security
Patches are encouraged, and may be submitted by forking this project and submitting a pull request through GitHub. Please see CONTRIBUTING.md for more details.