Skip to content
Branch: master
Find file History

Latest commit

nic0lette Add .google metadata
Adds .google metadata, screenshot.
Updates README to include the screenshot.
Latest commit aa2932b Nov 1, 2019

Files

Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
.google Add .google metadata Nov 1, 2019
app Import "File Locker" sample. Oct 31, 2019
gradle/wrapper Import "File Locker" sample. Oct 31, 2019
screenshots Add .google metadata Nov 1, 2019
.gitignore Import "File Locker" sample. Oct 31, 2019
README.md Add .google metadata Nov 1, 2019
build.gradle Import "File Locker" sample. Oct 31, 2019
gradle.properties Import "File Locker" sample. Oct 31, 2019
gradlew Import "File Locker" sample. Oct 31, 2019
gradlew.bat Import "File Locker" sample. Oct 31, 2019
settings.gradle Import "File Locker" sample. Oct 31, 2019

README.md

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.

You can’t perform that action at this time.