Welcome to the MP3Car.com forums.
You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. Registering will also remove advertisements. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!
If you have any problems with the registration process or your account login, please contact contact us.
|
09-04-2006, 11:12 AM
|
#1
|
|
Low Bitrate
Join Date: Jun 2005
Posts: 77
|
Password Handling
Hey David ... I have two quick questions about passwords:
1. Is there a pre-built control for password handling? Or will I have to mask input manually?
I am looking for the same functionality that is used when setting up a password for an internet connection.
2. Is there exposed functionality through the SDK to store passwords securely? Or must we encrypt and store the password ourselves?
|
|
|
09-04-2006, 05:39 PM
|
#2
|
|
MySQL Error
Join Date: Apr 2004
Posts: 4,955
|
Quote: Originally Posted by JWise1203 
Hey David ... I have two quick questions about passwords:
1. Is there a pre-built control for password handling? Or will I have to mask input manually?
I am looking for the same functionality that is used when setting up a password for an internet connection.
2. Is there exposed functionality through the SDK to store passwords securely? Or must we encrypt and store the password ourselves?
The only two places I use passwords are with the dialup connections and the lock screen/settings password...
You are correct that I store these as clear text in XML... I will encyrpt them...
I will try to get that into the next release, but if not the next one... I just overlooked it... they should be encrypted
david
__________________
__________________
CENTRAFUSE http://www.centrafuse.com
01 Jeep Cherokee Sport 4x4 Installed
M10000/512Mb/20GB, Lilliput 7", Holux GM-210
|
|
|
09-04-2006, 05:43 PM
|
#3
|
|
Low Bitrate
Join Date: Jun 2005
Posts: 77
|
Thanks for the info David. What about masking the password input (****) in the GUI?
|
|
|
09-04-2006, 05:46 PM
|
#4
|
|
MySQL Error
Join Date: Apr 2004
Posts: 4,955
|
Quote: Originally Posted by JWise1203 
Thanks for the info David. What about masking the password input (****) in the GUI?
Is it not masked? I thought I already did that... When you set the password under settings that is masked for you right? I might have missed masking it on the Internet setup screen...
What version are you running?
note: I just checked and it should be masked in RC2... not sure if I had that in RC1 yet...
david
__________________
__________________
CENTRAFUSE http://www.centrafuse.com
01 Jeep Cherokee Sport 4x4 Installed
M10000/512Mb/20GB, Lilliput 7", Holux GM-210
Last edited by veetid : 09-04-2006 at 05:49 PM.
|
|
|
09-04-2006, 05:50 PM
|
#5
|
|
Low Bitrate
Join Date: Jun 2005
Posts: 77
|
The password masking is enabled for the two fields that you mentioned.
The question I have is if you made the masking available through the SDK. I will need to do this for a plug-in that I am developing. Basically have the masking work exactly as you have it setup now.
|
|
|
09-04-2006, 05:58 PM
|
#6
|
|
MySQL Error
Join Date: Apr 2004
Posts: 4,955
|
Quote: Originally Posted by JWise1203 
The password masking is enabled for the two fields that you mentioned.
The question I have is if you made the masking available through the SDK. I will need to do this for a plug-in that I am developing. Basically have the masking work exactly as you have it setup now.
I see what you are saying... This should all just been done by you in your plugin, very basic stuff...
For example in setup when you are populating in readConfig just use something like this:
Code:
string hiddenpassword = "";
for(int i=0;i<readConfig("/APPCONFIG/DIALUPPASSWORD").Length;i++)
hiddenpassword += "*";
this.CF_updateButtonText("BUTTON4", hiddenpassword);
Then when you go to save use something like:
Code:
osk myosk = new osk(LanguageReader.getText("APPLANG/SETUP/PASSWORDTEXT"), ((CFControls.skinButton)buttonArray[CF_getButtonID("BUTTON4")]).Text, true);
myosk.MainForm = this.MainForm;
if(myosk.ShowDialog() == DialogResult.OK)
{
string hiddenpassword = "";
for(int i=0;i<myosk.resultData.Length;i++)
hiddenpassword += "*";
this.CF_updateButtonText("BUTTON4", hiddenpassword);
updateConfig("/APPCONFIG/DIALUPPASSWORD", myosk.resultData);
}
myosk.Close();
Notice updateConfig writes the real password to to the XML file, this is just a function that updates the XML node and then if you hit save, it saves the file, you hit cancel no changes are made...
This is where I could encrypt the password, at updateConfig... Then when you load up your plugin and read the config unencrypt there...
NOTE: The biggest thing to note is the true parameter on the end of the OSK dialog creation... This tells the OSK to auto mask for you... This might have been all you were asking for the whole time, this is handled for you in the dialog... With intellisense you can seet he parameters on the OSK and the numberpad...
david
david
__________________
__________________
CENTRAFUSE http://www.centrafuse.com
01 Jeep Cherokee Sport 4x4 Installed
M10000/512Mb/20GB, Lilliput 7", Holux GM-210
Last edited by veetid : 09-04-2006 at 06:01 PM.
|
|
|
09-04-2006, 06:09 PM
|
#7
|
|
Low Bitrate
Join Date: Jun 2005
Posts: 77
|
Quote: Originally Posted by veetid 
I see what you are saying... This should all just been done by you in your plugin, very basic stuff...
For example in setup when you are populating in readConfig just use something like this:
Code:
string hiddenpassword = "";
for(int i=0;i<readConfig("/APPCONFIG/DIALUPPASSWORD").Length;i++)
hiddenpassword += "*";
this.CF_updateButtonText("BUTTON4", hiddenpassword);
Then when you go to save use something like:
Code:
osk myosk = new osk(LanguageReader.getText("APPLANG/SETUP/PASSWORDTEXT"), ((CFControls.skinButton)buttonArray[CF_getButtonID("BUTTON4")]).Text, true);
myosk.MainForm = this.MainForm;
if(myosk.ShowDialog() == DialogResult.OK)
{
string hiddenpassword = "";
for(int i=0;i<myosk.resultData.Length;i++)
hiddenpassword += "*";
this.CF_updateButtonText("BUTTON4", hiddenpassword);
updateConfig("/APPCONFIG/DIALUPPASSWORD", myosk.resultData);
}
myosk.Close();
Notice updateConfig writes the real password to to the XML file, this is just a function that updates the XML node and then if you hit save, it saves the file, you hit cancel no changes are made...
This is where I could encrypt the password, at updateConfig... Then when you load up your plugin and read the config unencrypt there...
NOTE: The biggest thing to note is the true parameter on the end of the OSK dialog creation... This tells the OSK to auto mask for you... This might have been all you were asking for the whole time, this is handled for you in the dialog... With intellisense you can seet he parameters on the OSK and the numberpad...
david
david
Perfect! Thanks David.
|
|
|
09-30-2006, 08:47 PM
|
#8
|
|
Low Bitrate
Join Date: Jun 2005
Posts: 77
|
Quote: Originally Posted by veetid 
I see what you are saying... This should all just been done by you in your plugin, very basic stuff...
For example in setup when you are populating in readConfig just use something like this:
Code:
string hiddenpassword = "";
for(int i=0;i<readConfig("/APPCONFIG/DIALUPPASSWORD").Length;i++)
hiddenpassword += "*";
this.CF_updateButtonText("BUTTON4", hiddenpassword);
Then when you go to save use something like:
Code:
osk myosk = new osk(LanguageReader.getText("APPLANG/SETUP/PASSWORDTEXT"), ((CFControls.skinButton)buttonArray[CF_getButtonID("BUTTON4")]).Text, true);
myosk.MainForm = this.MainForm;
if(myosk.ShowDialog() == DialogResult.OK)
{
string hiddenpassword = "";
for(int i=0;i<myosk.resultData.Length;i++)
hiddenpassword += "*";
this.CF_updateButtonText("BUTTON4", hiddenpassword);
updateConfig("/APPCONFIG/DIALUPPASSWORD", myosk.resultData);
}
myosk.Close();
Notice updateConfig writes the real password to to the XML file, this is just a function that updates the XML node and then if you hit save, it saves the file, you hit cancel no changes are made...
This is where I could encrypt the password, at updateConfig... Then when you load up your plugin and read the config unencrypt there...
NOTE: The biggest thing to note is the true parameter on the end of the OSK dialog creation... This tells the OSK to auto mask for you... This might have been all you were asking for the whole time, this is handled for you in the dialog... With intellisense you can seet he parameters on the OSK and the numberpad...
david
david
David,
I am getting around to implementing this code and am having a prolem creating the OSK; at this line:
osk myosk = new osk(LanguageReader.getText("APPLANG/SETUP/PASSWORDTEXT"), ((CFControls.skinButton)buttonArray[CF_getButtonID("BUTTON4")]).Text, true);
I can't find an osk class anywhere in the documentation. Am I missing something?
Currently I am displaying the OSK this way:
this.CF_systemDisplayDialog(CF_Dialogs.OSK, this.pluginLang.readPluginField("/APPLANG/SETUP/BUTTON3TEXT"), this.CF_getButtonText("BUTTON3"), out resultvalue, out resulttext)
|
|
|
10-01-2006, 06:08 PM
|
#9
|
|
MySQL Error
Join Date: Apr 2004
Posts: 4,955
|
Quote: Originally Posted by JWise1203 
David,
I am getting around to implementing this code and am having a prolem creating the OSK; at this line:
osk myosk = new osk(LanguageReader.getText("APPLANG/SETUP/PASSWORDTEXT"), ((CFControls.skinButton)buttonArray[CF_getButtonID("BUTTON4")]).Text, true);
I can't find an osk class anywhere in the documentation. Am I missing something?
Currently I am displaying the OSK this way:
this.CF_systemDisplayDialog(CF_Dialogs.OSK, this.pluginLang.readPluginField("/APPLANG/SETUP/BUTTON3TEXT"), this.CF_getButtonText("BUTTON3"), out resultvalue, out resulttext)
Those are the internal functions, I pasted my code straight from the internal project, not a plugin run from the SDK, for an example...
I actually don't have a way to call the OSK in password mode currently from the SDK, I will add this as a parameter...
david
__________________
__________________
CENTRAFUSE http://www.centrafuse.com
01 Jeep Cherokee Sport 4x4 Installed
M10000/512Mb/20GB, Lilliput 7", Holux GM-210
|
|
|
06-02-2007, 09:27 AM
|
#10
|
|
Variable Bitrate
Join Date: Mar 2007
Location: Detroit, MI
Vehicle: http://www.fluxmedia.net/
Posts: 386
|
Quote: Originally Posted by veetid 
Those are the internal functions, I pasted my code straight from the internal project, not a plugin run from the SDK, for an example...
I actually don't have a way to call the OSK in password mode currently from the SDK, I will add this as a parameter...
david
Any chance this has been done by now David? I too am looking for the password mode for the OSK...
EDIT:
For anyone still looking for this info in the future...
Can be done with sending string "PASSWORD" as the second parameter to the
CF_systemDisplayDialog() function...
i.e.
CF_systemDisplayDialog(CF_Dialogs.OSK, "text", "text", "PASSWORD", out resultvalue, out resulttext)
Last edited by smeesseman : 06-18-2007 at 10:08 PM.
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 07:50 AM.
|
|