Jump to content

genericnumber1

Members
  • Content Count

    1,858
  • Joined

  • Last visited

    Never

Posts posted by genericnumber1


  1. sha256 is twice as long as md5 any way you cut it. It's an understandable mistake though, it's hard to remember the length of all of these hashes.

    Of course, length isn't everything

     

    Tell that to my girlfriend!

     

    But yes, it's true. I see sha256 as an algorithm with nothing more than collision protection and a desire to fill my hard drive with hex numbers. I've said it and I'll say it again, I do nothing more than salt an md5 and it's served me well for many many many years.

     

    edit: darn repeated words


  2. sha256 hashes are 64bytes long, while md5 are 20 bytes long. Just compare the size of rainbow tables for all alphanumeric strings composed of 8 bytes. But yeah. Salting is the key for secure hashes.

     

    sha256 is 256 bits...

    - hence: 32 bytes long

    - expressed as hex: 64 characters long

     

    md5 is 128 bits..

    - hence: 16 bytes long

    - expressed as hex: 32 characters long

     

    sha256 is twice as long as md5 any way you cut it. It's an understandable mistake though, it's hard to remember the length of all of these hashes.


  3. collisions are just where two strings have the same hash value.. what I meant is if you have a string encrypted

     

    omgsupersecretlongstringiamgoingtoencrypt

     

    and it has the same md5 hash as

     

    hai

     

    it's a security vulnerability.. but the probability of that is virtually zero. I've always used salted md5 hashes, and I'll use them until someone's rainbow tabled them all or I find something I like better.

     

    sha256 makes an sha hash twice as long as an md5 hash (which is 128 bits I believe). Theoretically (and logically) it means less collisions.

     

    Whether you use sha or md5 really isn't a HUGE decider in your security.. pick a good salt and just don't worry about it until you need to :P

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.