Everybody! This is important. In a few days, these forums will be moving over to using the totally sweet Discourse platform. To ensure this migration happens smoothly with no loss of content, these forums are currently in a read-only mode. I do apologize for the inconvenience.

There is never a good time to turn the forums off for an extended period of time, but I promise the new forums will be a billion times better. I'm pretty sure of it.

See you all on the other side in a few days, and if you have any (non-technical) questions, please e-mail me at kirupa@kirupa.com. For technical questions, try to find a tutorial that corresponds to what you are looking for and post in the comments section of that page.

Cheers,
Kirupa

Page 1 of 2 12 LastLast
Results 1 to 15 of 26

Thread: Hashing Algorithms

  1. #1

    Hashing Algorithms

    What, in your opinion, is the most secure and collision-resistant hashing algorithm?
    COLOURlovers | Member #2 of the kirupa XBox 360 Club
    "I think most people would agree that your computer breaking is a Christmas miracle." ~shane-c to Timmytots

  2. #2
    Hashing of what? Strings? You will inevitably have collisions at some point, so are you asking what kind of collision-solving algorithm is best?
    Wait, what?

  3. #3
    No, I'm asking which algorithm has the least collisions.
    COLOURlovers | Member #2 of the kirupa XBox 360 Club
    "I think most people would agree that your computer breaking is a Christmas miracle." ~shane-c to Timmytots

  4. #4
    ... really collision is not very high even in the most used hash's. If you want less collision simply expand the hash to more characters. 32 64 128...

    Bring it out to 128 and trust me your not going to be hitting similar hashes.

    Join #kirupa | Click the ƒ under my Username | CL | Jeff

  5. #5
    Oh you mean cryptographic hashing? I thought you meant hashing functions used in hashtables.
    Wait, what?

  6. #6
    ^ Yeah, sorry for not defining what I wanted enough. I had been reading about the possible weakness of the SHA1 hash and was wondering if the kirupians had any favorite hashes.
    COLOURlovers | Member #2 of the kirupa XBox 360 Club
    "I think most people would agree that your computer breaking is a Christmas miracle." ~shane-c to Timmytots

  7. #7
    Wikipedia suggests that SHA-2 has no weaknesses, but mostly because it has not been scrutinized much yet.

    I think most hashes are fine, even if you work at the CIA.
    If you notice this notice you will notice that this notice is not worth noticing.

    "Are you doing anything tonight? If not, how about me?"

    Opera Sucks! - FIX IT
    Oliver Zheng

  8. #8
    ^ Yeah, I read that a couple weeks ago.
    COLOURlovers | Member #2 of the kirupa XBox 360 Club
    "I think most people would agree that your computer breaking is a Christmas miracle." ~shane-c to Timmytots

  9. #9
    sha1 has collisions. The only way, I can think of right now, you can have "no" collisions is if you have strict unique integer data...

  10. #10
    Hmm... After doing some more reading I've decided to go with SHA256 or SHA512, with possible 3 or 4 digit random integer salting. Better safe than sorry I always say.
    COLOURlovers | Member #2 of the kirupa XBox 360 Club
    "I think most people would agree that your computer breaking is a Christmas miracle." ~shane-c to Timmytots

  11. #11
    You are always going to get collisions - that's the definition of hashes. If you are going to transform a string of infinite possibilities into a string of fixed length, how can there not be collisions?
    If you notice this notice you will notice that this notice is not worth noticing.

    "Are you doing anything tonight? If not, how about me?"

    Opera Sucks! - FIX IT
    Oliver Zheng

  12. #12
    wtf is Hashing Algorithms?

  13. #13
    “Who were you, Krilnon, and how did you know so much about AS4?”
    The historian sighed as she gazed up at the sky and saw… not stars. A story.

  14. #14
    Well I know some people that add the length of the string after there Hash... not good for passwords but prevents almost every chance that your gonna have collisions.

    ... but really you shouldn't have to.
    Last edited by Templarian; December 27th, 2007 at 03:16 AM.

    Join #kirupa | Click the ƒ under my Username | CL | Jeff

  15. #15
    Talked to a cryptography wiz last night and decided on what I'm going to do. Problem solved.
    COLOURlovers | Member #2 of the kirupa XBox 360 Club
    "I think most people would agree that your computer breaking is a Christmas miracle." ~shane-c to Timmytots

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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

Home About kirupa.com Meet the Moderators Advertise

 Link to Us

 Credits

Copyright 1999 - 2012