Hashing Functions
Results 1 to 10 of 16

Thread: Hashing Functions

Threaded View

  1. #1
    Member
    Join Date
    May 2008
    Posts
    34

    Cool Hashing Functions

    A debate has come up recently and I was wondering what others thought about it. The debate is about whether or not it increases security to add content to user input. Here's the two scenarios:

    1.
    - A user registers a password.
    - The password is hashed.
    - The hash is stored in the database, along with the username.

    - When comparing passwords to user input later, the user inputs a password.
    - The password is hashed.
    - The new hash is then compared against the hash stored in the database to determine if the user authenticates.

    OR

    2.
    - A user registers a password.
    - The date and time is stored in the database.
    - That date and time that is stored is then added to the input.
    - A hash is created from the combination of the input and the stored date and time.
    - The hash is stored in the database, along with the username.

    - Later, a user enters input.
    - The input is then paired with the date and time that is found by searching for the username.
    - The input and date / time combination is then hashed.
    - The new hash is then compared to the hash stored in the database.


    My argument is that adding content to the user's input before hashing it will prevent dictionary attacks, (especially if the date/time fields are stored in a separate table in a separate database.)

    What are your thoughts?
    Last edited by itPro; May 22nd, 2008 at 05:06 PM.

Similar Threads

  1. ZWinCrypt - Simple C++ Library for Hashing, Encryption and Compression
    By encipher in forum Cryptography, Steganography, etc.
    Replies: 0
    Last Post: April 11th, 2007, 02:25 AM
  2. OS Types and Functions!
    By Black Cluster in forum Other Tutorials Forum
    Replies: 4
    Last Post: April 24th, 2005, 07:28 PM
  3. General math functions header
    By Kamikaze Badger in forum Code Review
    Replies: 4
    Last Post: March 30th, 2005, 12:55 PM
  4. Question about functions in C++
    By Kamikaze Badger in forum General Programming Questions
    Replies: 2
    Last Post: October 28th, 2004, 12:50 AM
  5. Useful JavaScript functions
    By jethro in forum Other Tutorials Forum
    Replies: 0
    Last Post: July 11th, 2002, 06:49 PM

Posting Permissions

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