The MP3car.com Store  

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.

Go Back   MP3Car.com > Mp3Car Technical > Software & Software Development > Front Ends > Centrafuse > CF SDK

Reply
 
Thread Tools Display Modes
Old 09-04-2006, 11:12 AM   #1
Low Bitrate
 
Join Date: Jun 2005
Posts: 77
My Photos: (5)
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?
JWise1203 is offline   Reply With Quote
Sponsored Links
Old 09-04-2006, 05:39 PM   #2
MySQL Error
 
veetid's Avatar
 
Join Date: Apr 2004
Posts: 4,955
My Photos: (0)
Quote: Originally Posted by JWise1203 View Post
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
veetid is offline   Reply With Quote
Old 09-04-2006, 05:43 PM   #3
Low Bitrate
 
Join Date: Jun 2005
Posts: 77
My Photos: (5)
Thanks for the info David. What about masking the password input (****) in the GUI?
JWise1203 is offline   Reply With Quote
Old 09-04-2006, 05:46 PM   #4
MySQL Error
 
veetid's Avatar
 
Join Date: Apr 2004
Posts: 4,955
My Photos: (0)
Quote: Originally Posted by JWise1203 View Post
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.
veetid is offline   Reply With Quote
Old 09-04-2006, 05:50 PM   #5
Low Bitrate
 
Join Date: Jun 2005
Posts: 77
My Photos: (5)
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.
JWise1203 is offline   Reply With Quote
Old 09-04-2006, 05:58 PM   #6
MySQL Error
 
veetid's Avatar
 
Join Date: Apr 2004
Posts: 4,955
My Photos: (0)
Quote: Originally Posted by JWise1203 View Post
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.
veetid is offline   Reply With Quote
Old 09-04-2006, 06:09 PM   #7
Low Bitrate
 
Join Date: Jun 2005
Posts: 77
My Photos: (5)
Quote: Originally Posted by veetid View Post
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.
JWise1203 is offline   Reply With Quote
Old 09-30-2006, 08:47 PM   #8
Low Bitrate
 
Join Date: Jun 2005
Posts: 77
My Photos: (5)
Quote: Originally Posted by veetid View Post
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)
JWise1203 is offline   Reply With Quote
Old 10-01-2006, 06:08 PM   #9
MySQL Error
 
veetid's Avatar
 
Join Date: Apr 2004
Posts: 4,955
My Photos: (0)
Quote: Originally Posted by JWise1203 View Post
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
veetid is offline   Reply With Quote
Old 06-02-2007, 09:27 AM   #10
Variable Bitrate
smeesseman's CarPC Specs
 
smeesseman's Avatar
 
Join Date: Mar 2007
Location: Detroit, MI
Vehicle: http://www.fluxmedia.net/
Posts: 386
My Photos: (0)
Quote: Originally Posted by veetid View Post
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)
__________________
http://www.fluxmedia.net/

Last edited by smeesseman : 06-18-2007 at 10:08 PM.
smeesseman is offline   Reply With Quote
Sponsored Links
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Coding a touchscreen password program can ctrl-alt-del be disabled? alti Software & Software Development 21 06-27-2005 07:49 AM
Password for Centrafuse? justintime Centrafuse 8 06-15-2005 04:11 AM
Kenwood password problem five_to_one Car Audio 3 05-18-2005 10:34 PM
Excel 2000 password recovery wizardPC Off Topic 2 03-07-2005 02:48 PM
Cleared Password and now it pops a dialog box every time i go into setup antimatter FrodoPlayer 3 08-02-2004 09:18 PM


All times are GMT -5. The time now is 07:50 AM.


Sponsored Links
The MP3car.com Store

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
Copyright © 1999 - 2008 Mp3Car.com Inc.
Ad Management by RedTyger
Message Board Statistics