scottyab / secure-preferences

Android Shared preference wrapper than encrypts the values of Shared Preferences. It's not bullet proof security but rather a quick win for incrementally making your android app more secure.
1.53k stars 235 forks source link

Constructor error with null password #59

Open carlpoole opened 7 years ago

carlpoole commented 7 years ago

When I try to create an instance of SharedPreferences using the constructor with null as the password as shown in the README:

new SecurePreferences(context,null,"name_of_file.xml");

I get an error:

Cannot resolve constructor 'SecurePreferences(android.content.Context, null, java.lang.String)'

I was able to workaround the issue by passing empty string as the password instead. It looks like the behavior is the same, and the lib will generate a key for me.

scottyab commented 7 years ago

Thanks for reporting this.