Find file History

Mobile app to store your passwords in an Encrypted Store

Author: Daniel Passos (dpassos)
Level: Beginner
Technologies: Java, Android
Summary: A basic example of Encrypted Store

What is it?

Password Manager project demonstrates how to include Encrypted Store functionality in Android applications.

How do I run it?

System Requirements

Build Application

$ cd /path/to/PasswordManager/
$ ./gradlew clean build

Running the app

To deploy, run and debug the application on an Android device attached to your system, on the command line enter the following:

  1. Install generated apk to device

    $ cd /path/to/PasswordManager
    $ ./gradlew installDebug
  2. Open app on device

How does it work?

When application start, the PasswordManagerActivity will ask a passworkd and call PasswordManagerApplication.createStore.

if it's the first invoke time, the DataManager will create a new Encrypted Store using this password, if not it will try open the Encrypted database using that password. If this password is wrong, it will throw an InvalidKeySpecException.

store = (EncryptedSQLStore<Credential>) DataManager.config("pwdStore", EncryptedSQLStoreConfiguration.class)