iamMehedi / Secured-Preference-Store

A cryptography library and a SharedPreferences wrapper for Android that encrypts the content with 256 bit AES encryption. The Encryption key is securely stored in device's KeyStore.
562 stars 97 forks source link

Encryption Manager Initialised in init() method #14

Closed StuStirling closed 6 years ago

StuStirling commented 6 years ago

I have move the initialisation of the encryption manager into a method called init(). This method should be called only once before calling any other method on the store. The reason behind this is to have error handling in one place rather than everywhere you try and get the store instance using getSharedInstance(). This will be a breaking change however so thought needs to go into whether this is a library change like I am proposing in this pull request or if it's an implementation details that would be useful to highlight in the README.

I have made a couple of modifications to the Git project structure to allow contributors to quickly and easily checkout the project without having to add files: namely the settings.gradle file has been added to the git repo and a .gitignore file added.

StuStirling commented 6 years ago

Hi Mehedi, please see the changes you requested in the last commit