Results 1 to 38 of 38

Thread: VB6 - Example on how to make a Login where password is stored hashed in Database

Threaded View

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Feb 2002
    Location
    Canada, Toronto
    Posts
    5,802

    VB6 - Example on how to make a Login where password is stored hashed in Database

    Lately a few users asked how to make a login for their applications.

    This example shows how to make a login where the login information is stored in a database.

    I'm using an Access Database (for simplicity), but it can be done just as easily with any other database type.

    The password is stored hashed using MD5 (128 Bit) in the database, so you don't need to be afraid that someone will just open the database and read the passwords.

    As most people know, hashing is a one-way encryption, so the hash cannot be brought back to the original password, that's why it is safe to store the passwords this way.

    You can go further than that, and set a password to the database itself, but as many know, that is easily breakable using tools off the internet. That's why I did not bother adding a password to the database for this example.
    Attached Files Attached Files

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