@Override
    public boolean setPasscode(String passcode) {
        String salt = getSalt();
        SharedPreferences.Editor editor = mSharedPreferences.edit();

        if (passcode == null) {
            editor.remove(PASSWORD_PREFERENCE_KEY);
            editor.apply();
            this.disable();
        } else {
            passcode = salt + passcode + salt;
            setAlgorithm(Algorithm.SHA256);
            passcode = Encryptor.getSHA(passcode, Algorithm.SHA256);
            editor.putString(PASSWORD_PREFERENCE_KEY, passcode);
            editor.apply();
            this.enable();
        }

        return true;
    }
Static method that allows to get back the current static Instance of {@link AppLockImpl}

@param context       The current context of the {@link Activity}
@param activityClass The activity extending {@link AppLockActivity}
@return The instance.
lib/src/main/java/com/github/omadahealth/lollipin/lib/managers/AppLockImpl.java