| [news.eclipse.platform.rcp] Re: preferences: password encrypt? |
Nick
i have an IWorkbenchPreferencePage for configuring path to and name of a DerbyDB and username and password.
the password is inserted in to a
StringFieldEditor sfeP=new StringFieldEditor(PreferenceConstants.P_STRING, "Password:", getFieldEditorParent());
sfeP.getTextControl(getFieldEditorParent()).setEchoChar('*');
the * as echo-char helps against anybody looking into the preferences while the program runs -- but the prefs, and the thus passwordl, are stored as simple plaintext in a file with the rights set to 644.
how do i secure the preferences against being read from anybody unauthorized?