Results 1 to 9 of 9

Thread: [RESOLVED] How can i store passwords in VB 2008?

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2008
    Posts
    6

    Resolved [RESOLVED] How can i store passwords in VB 2008?

    Hi,

    I know its a very basic problem but what is the best way to store passwords and usernames in visual basic 2008? I need to be able to add them whist in runtime and I also need to be able to obviosly get the program to check wether inputted username and passwords are correct.

    I am VERY new to programming so please explain your answeres in dummy language

    Thanks, I look forward to the replies!

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

    Re: How can i store passwords in VB 2008?

    If you are using Web Application you could store them in the web.config file and in case of Windows Application in App.Config File.

    The better way is to encrypt the config setting that it is not clear text. And you need to decrypt it in code behind

    For encryption the config files see here
    Please mark you thread resolved using the Thread Tools as shown

  3. #3

    Thread Starter
    New Member
    Join Date
    Sep 2008
    Posts
    6

    Re: How can i store passwords in VB 2008?

    Quote Originally Posted by danasegarane View Post
    If you are using Web Application you could store them in the web.config file and in case of Windows Application in App.Config File.

    The better way is to encrypt the config setting that it is not clear text. And you need to decrypt it in code behind

    For encryption the config files see here
    thanks but the problem is even more fundamental than you are suggesting. I need to literally know WHERE i can store this info.

    I know it could be done in a database but I would rather do it writing VB if that is possible

    I honestly am not just being modest, I am very very very new to programming.

    Cheers

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

    Re: How can i store passwords in VB 2008?

    Windows or Web Application ?
    Please mark you thread resolved using the Thread Tools as shown

  5. #5

    Thread Starter
    New Member
    Join Date
    Sep 2008
    Posts
    6

    Re: How can i store passwords in VB 2008?

    Quote Originally Posted by danasegarane View Post
    Windows or Web Application ?
    Windows, sorry I didnt mention

  6. #6
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: How can i store passwords in VB 2008?

    Thread Moved
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

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

    Re: How can i store passwords in VB 2008?

    Then you can store the password in App.Config File. Add one Config file to your application using

    Project Menu -> Add new item ->Application Configuration File Add
    Please mark you thread resolved using the Thread Tools as shown

  8. #8

    Thread Starter
    New Member
    Join Date
    Sep 2008
    Posts
    6

    Re: How can i store passwords in VB 2008?

    Quote Originally Posted by danasegarane View Post
    Then you can store the password in App.Config File. Add one Config file to your application using

    Project Menu -> Add new item ->Application Configuration File Add
    Thank you very much for your help!

  9. #9
    Addicted Member
    Join Date
    Jan 2010
    Posts
    198

    Re: [RESOLVED] How can i store passwords in VB 2008?

    How can be achieve the same in VB 6

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