This repository has been archived by the owner on Mar 1, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 235
Wrong parameters order in one constructor #73
Comments
Hey @DominuS-RU nice spot thanks. This will be fixed in 0.1.6 |
@scottyab Yes, this is the swith for the first one. |
Hi,
|
@scottyab Any progress on that? |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello!
I noted wrong parameters order in one of the constructors.
We have main one (line 130) -
private SecurePreferences(Context context, final AesCbcWithIntegrity.SecretKeys secretKey, final String password, final String salt, final String sharedPrefFilename, int iterationCount)
Params:
Also, we have another one (line 126) -
public SecurePreferences(Context context, final String password, final String salt, final String sharedPrefFilename, int iterationCount) { this(context, null, password, sharedPrefFilename, salt, iterationCount); }
If we see to "this()" call to main one we can note that we have this order:
Good. But, if we consider in detail, in main constructor we have
4. salt (instead of sharedPrefFilename in second one)
5. sharedPrefFilename (instead of salt in second one)
Maybe i'm wrong, but my xml files have are named with my password string and only after fixing order I got right file names.
Hope it helps.
Regards,
Alexey.
The text was updated successfully, but these errors were encountered: