Skip to content

Latest commit

 

History

History
49 lines (33 loc) · 1.56 KB

README.md

File metadata and controls

49 lines (33 loc) · 1.56 KB

File Locker Sample

A sample that demonstrates how to use the Jetpack Security library to encrypt and decrypt files by implementing a simple note taking app.

Screenshot showing a list of notes. The notes say 'Secret Note' and 'Encrypted Todo List'.

Introduction

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.

Pre-requisites

  • Android SDK 29
  • Jetpack Security Library

Getting Started

This sample uses the Gradle build system. To build this project, use the "gradlew build" command or use "Import Project" in Android Studio.

Support

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.