Results 1 to 8 of 8

Thread: [RESOLVED] My.Setting.String Question

  1. #1

    Thread Starter
    Lively Member swingyswongy's Avatar
    Join Date
    Jun 2010
    Location
    Bay area, CA
    Posts
    83

    Resolved [RESOLVED] My.Setting.String Question

    Lets say i had a hidden my.setting.example for the project and the example was some type of password that is NOT visible during the program. Is there a way for the user to find that string? (example located somewhere on a text file or something on the computer) i don't really understand how VB saves the string without writing a file somewhere

    thanks!

  2. #2
    Learning .Net danasegarane's Avatar
    Join Date
    Aug 2004
    Location
    VBForums
    Posts
    5,853

    Re: My.Setting.String Question

    Yes the User can able to see the value. It will be saved in a XML file. This file will be located in your application Folder

    This will be stored in the

    Code:
    <c:\Documents and Settings>\<username>\[Local Settings\]Application Data\<companyname>\<appdomainname>_<eid>_<hash>\<verison>.

    Code:
    <applicationSettings>
        <MySettingsDemo.MySettings>
          <setting name="SMTPServerIP" serializeAs="String">
            <value>127.0.0.1</value>
          </setting>
          <setting name="MyServicesURL" serializeAs="String">
            <value>http://localhost/myservices.asmx</value>
          </setting>
        </MySettingsDemo.MySettings>
      </applicationSettings>
    MSDN
    Please mark you thread resolved using the Thread Tools as shown

  3. #3
    Lively Member
    Join Date
    May 2008
    Posts
    117

    Re: My.Setting.String Question

    How you create an especially hidden setting?
    whats the benefit of beeing rated?


  4. #4
    Learning .Net danasegarane's Avatar
    Join Date
    Aug 2004
    Location
    VBForums
    Posts
    5,853

    Re: [RESOLVED] My.Setting.String Question

    Encrypt the values before storing it and decrypt while retrieving..
    Please mark you thread resolved using the Thread Tools as shown

  5. #5
    PowerPoster cicatrix's Avatar
    Join Date
    Dec 2009
    Location
    Moscow, Russia
    Posts
    3,654

    Re: [RESOLVED] My.Setting.String Question

    Quote Originally Posted by danasegarane View Post
    Encrypt the values before storing it and decrypt while retrieving..
    But where do I store the encryption/decryption key?

  6. #6
    Learning .Net danasegarane's Avatar
    Join Date
    Aug 2004
    Location
    VBForums
    Posts
    5,853

    Re: [RESOLVED] My.Setting.String Question

    Quote Originally Posted by cicatrix View Post
    But where do I store the encryption/decryption key?
    May be hard code inside the Program
    Please mark you thread resolved using the Thread Tools as shown

  7. #7
    PowerPoster cicatrix's Avatar
    Join Date
    Dec 2009
    Location
    Moscow, Russia
    Posts
    3,654

    Re: [RESOLVED] My.Setting.String Question

    Quote Originally Posted by danasegarane View Post
    May be hard code inside the Program
    Considering the easiness any .Net application is decompiled with it might be not the best choice.

  8. #8
    Learning .Net danasegarane's Avatar
    Join Date
    Aug 2004
    Location
    VBForums
    Posts
    5,853

    Re: [RESOLVED] My.Setting.String Question

    Quote Originally Posted by cicatrix View Post
    Considering the easiness any .Net application is decompiled with it might be not the best choice.
    Yes it can. The other option could be store in database server,
    Please mark you thread resolved using the Thread Tools as shown

Posting Permissions

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



Click Here to Expand Forum to Full Width