Results 1 to 10 of 10

Thread: Password Handling

  1. #1
    Low Bitrate
    Join Date
    Jun 2005
    Posts
    88

    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?

  2. #2
    VENDOR - Centrafuse veetid's Avatar
    Join Date
    Apr 2004
    Posts
    5,040
    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

  3. #3
    Low Bitrate
    Join Date
    Jun 2005
    Posts
    88
    Thanks for the info David. What about masking the password input (****) in the GUI?

  4. #4
    VENDOR - Centrafuse veetid's Avatar
    Join Date
    Apr 2004
    Posts
    5,040
    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

  5. #5
    Low Bitrate
    Join Date
    Jun 2005
    Posts
    88
    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.

  6. #6
    VENDOR - Centrafuse veetid's Avatar
    Join Date
    Apr 2004
    Posts
    5,040
    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

  7. #7
    Low Bitrate
    Join Date
    Jun 2005
    Posts
    88
    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.

  8. #8
    Low Bitrate
    Join Date
    Jun 2005
    Posts
    88
    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)

  9. #9
    VENDOR - Centrafuse veetid's Avatar
    Join Date
    Apr 2004
    Posts
    5,040
    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

  10. #10
    VENDOR - Centrafuse smeesseman's Avatar
    Join Date
    Mar 2007
    Location
    Detroit, MI
    Posts
    392
    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)

Similar Threads

  1. Coding a touchscreen password program can ctrl-alt-del be disabled?
    By alti in forum Software & Software Development
    Replies: 21
    Last Post: 06-27-2005, 08:49 AM
  2. Password for Centrafuse?
    By justintime in forum Centrafuse
    Replies: 8
    Last Post: 06-15-2005, 05:11 AM
  3. Kenwood password problem
    By five_to_one in forum Car Audio
    Replies: 3
    Last Post: 05-18-2005, 11:34 PM
  4. Excel 2000 password recovery
    By wizardPC in forum Off Topic
    Replies: 2
    Last Post: 03-07-2005, 03:48 PM
  5. Replies: 3
    Last Post: 08-02-2004, 10:18 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •