Results 1 to 12 of 12

Thread: [Tutorial] on making a Password Checker (Easy,Fast!)

  1. #1
    Member
    Join Date
    Sep 12
    Posts
    47

    [Tutorial] on making a Password Checker (Easy,Fast!)

    Steps:
    1.) Open Visual Basics/Studio 2010
    2.) Make a new Windows Form Application..
    3.) Drag in a Textbox and a Button into the form.
    4.) Double Click the button to open it's coding and write this below.


    Code:
    If Textbox1.Text = "YourPasswordHere" Then
    Form2.Show() 
    Else MsgBox("Incorrect Password.") 
    
    'Where form2 is you can make anything happen when the password is entered. Form2 should be your main form
    'This Else statement means anything other then the password will result in this messagebox appearing when the user clicks the button.
    Tips: Textbox1 is the default name of the textbox. You can change it and common Abbreviation for it is Txt
    The button Abbreviation is Btn


    It's really just the shortening!

    I am making this tutorial dedicated to the wonderful community on this website, and I wish to pursue in helping people like they helped me. Starting my first tutorial here.

    I have only tested this on Visual Studio 2010, This may work on visual basics 2008


    If you like this tutorial, and you like my work Please leave your support! If you want more simple tutorials, I will be willing to make them for those who request them. Please remember! Making these tutorials is a Hobby and is done at school. I may not get too all if it gets really full. Don't hesitate to ask below!

  2. #2
    .NUT jmcilhinney's Avatar
    Join Date
    May 05
    Location
    Sydney, Australia
    Posts
    80,834

    Re: [Tutorial] on making a Password Checker (Easy,Fast!)

    Code examples and the like should be posted in the VB.NET CodeBank forum, with this forum used for asking questions.

  3. #3
    Member
    Join Date
    Sep 12
    Posts
    47

    Re: [Tutorial] on making a Password Checker (Easy,Fast!)

    Could someone move it, Or I have to do it manually.

  4. #4
    .NUT jmcilhinney's Avatar
    Join Date
    May 05
    Location
    Sydney, Australia
    Posts
    80,834

    Re: [Tutorial] on making a Password Checker (Easy,Fast!)

    Use the Report Post icon on your post to send a message the mods requesting that it be moved.

  5. #5
    Fanatic Member ThomasJohnsen's Avatar
    Join Date
    Jul 10
    Location
    Denmark
    Posts
    521

    Re: [Tutorial] on making a Password Checker (Easy,Fast!)

    A word of warning though: as you may have read, including a password in program-code, can be a bad idea. A person determined to get your password, can decompile your code and read it pretty easily. Thus it is costumary never to save passwords, but rather to save for instance a hash-code of the passwords.
    Your code can easily be made to accomodate this practise though, should you choose to investigate it further in the future.
    In truth, a mature man who uses hair-oil, unless medicinally , that man has probably got a quoggy spot in him somewhere. As a general rule, he can't amount to much in his totality. (Melville: Moby Dick)

  6. #6
    Frenzied Member
    Join Date
    Mar 05
    Location
    Sector 001
    Posts
    1,579

    Re: [Tutorial] on making a Password Checker (Easy,Fast!)

    Leave the password in the code but don't use it. In fact add an array of millions of passwords and call it OneOfMany. It will also make the exe more C++ish by being several hundred kilobytes large instead of the typical puny several Ks - yeah, users are impressed by size.

    Making things look easy (to hack) is like smiling - the more you do it, the more people get confused.
    VB 2005, Win Xp Pro sp2

  7. #7
    Member
    Join Date
    Sep 12
    Posts
    47

    Re: [Tutorial] on making a Password Checker (Easy,Fast!)

    Lol! This is supposed to be the most simplistic I really really like your idea though.

  8. #8
    Member
    Join Date
    Sep 12
    Posts
    47

    Re: [Tutorial] on making a Password Checker (Easy,Fast!)

    Is it really that bad?? I mean people could Decompile the .exe or what. What would be your suggestion?

  9. #9
    Fanatic Member ThomasJohnsen's Avatar
    Join Date
    Jul 10
    Location
    Denmark
    Posts
    521

    Re: [Tutorial] on making a Password Checker (Easy,Fast!)

    Quote Originally Posted by Reapism View Post
    Is it really that bad?? I mean people could Decompile the .exe or what. What would be your suggestion?
    There is no golden solution. People can decompile an .exe and find out what stored data contains, but in many cases, there is no reason for a hacker to try and circumvent your password, unless the software contains access to something of value to her/him. And there aren't that many hackers out there anyways - at least that's my impression.
    Keep using what you feel comfortable with and when/if you start creating something that may grant access to sensitive/valuable information, start looking into added safety. There are links here on how to encrypt information with passwords or how to store passwords using hash-codes to avoid storing actual damaging information, that could be used by gain access (when you feel like it, hashing passwords is a good place to start - encrypting data is a much bigger area with lots of information on various algorithms, and it is a big area to investigate).
    In truth, a mature man who uses hair-oil, unless medicinally , that man has probably got a quoggy spot in him somewhere. As a general rule, he can't amount to much in his totality. (Melville: Moby Dick)

  10. #10
    PowerPoster dunfiddlin's Avatar
    Join Date
    Jun 12
    Posts
    5,528

    Re: [Tutorial] on making a Password Checker (Easy,Fast!)

    And there aren't that many hackers out there anyways - at least that's my impression.
    That's kinda what they want you to think though, ain't it? There are huge numbers of hacking attempts made every minute but their targets are financial institutions, Governments and law enforcers from whom there is something worthwhile to gain, not individual applications on individual PCs.

    Having said that, passwords are ridiculously overused which merely makes them easier to hack. If you've got a hundred passwords to remember just to visit your favourite websites, for example, it's inevitable that you'll fall into the habit of using the same one multiple times or storing them in plain sight.

    And the truth is that any well-equipped hacker will break through any single level system in a matter of moments if they are so minded, whether or not you've given them the additional help of including the password in the code. There is little real difference between a single level password and no password at all.
    Last edited by dunfiddlin; Oct 27th, 2012 at 03:50 PM.
    As the 6-dimensional mathematics professor said to the brain surgeon, "It ain't Rocket Science!"

    Please be aware that whilst I will read private messages (one day!) I am unlikely to reply to anything that does not contain offers of cash, fame or marriage!

  11. #11
    .NUT jmcilhinney's Avatar
    Join Date
    May 05
    Location
    Sydney, Australia
    Posts
    80,834

    Re: [Tutorial] on making a Password Checker (Easy,Fast!)

    Quote Originally Posted by Reapism View Post
    Is it really that bad?? I mean people could Decompile the .exe or what. What would be your suggestion?
    I wasn't going to comment but now that we're going down that road, your solution over-simplistic. Follow the CodeBank link in my signature and check out my WinForms Login thread to see what I would consider about the simplest option viable. Even then, it doesn't include hashing of the passwords stored in the database, which would be pretty much obligatory. There's also nothing about how to create the credentials in the first place, but registration would be a slightly different matter.

  12. #12
    Super Moderator Joacim Andersson's Avatar
    Join Date
    Jan 99
    Location
    Sweden
    Posts
    13,437

    Re: [Tutorial] on making a Password Checker (Easy,Fast!)

    Moved to the CodeBank forum.
    Joacim Andersson
    Microsoft MVP, MCSD, MCSE, Sun Certified Java Programmer
    If anyone's answer has helped you, please show your appreciation by rating that answer.
    I'd rather run ScriptBrix...
    Joacim's view on stuff.

Posting Permissions

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