Git Product home page Git Product logo

Comments (10)

untitaker avatar untitaker commented on August 23, 2024

in the wild

That particular aspect is incorrect, but I agree we should change the default.

from itsdangerous.

davidism avatar davidism commented on August 23, 2024

Are we okay with SHA-256? Should be fine, just want to make sure. Could also just go all the way to SHA-512.

from itsdangerous.

devnul3 avatar devnul3 commented on August 23, 2024

SHA-512 performs 80 rounds with a blocksize of 1024 bits, whilst SHA-256 performs 64 rounds with a blocksize of 512 bits. This leads to SHA-512 being faster on 64-bit machines for message lengths of more than a few hundred bits.

There are potential legacy client support issues with SHA-512 vs SHA-256, but performance at least should not be a reason to only use SHA-256 (and in fact may be a reason to use SHA-512).

from itsdangerous.

davidism avatar davidism commented on August 23, 2024

Hmm, looks like this already came up before in #66, which I closed because hash security isn't representative of HMAC security. Is there actually any issue with SHA-1 as it's used in this library?

from itsdangerous.

devnul3 avatar devnul3 commented on August 23, 2024

Looks like you're right about that, closing.

from itsdangerous.

davidism avatar davidism commented on August 23, 2024

See this chat transcript for more discussion: http://chat.stackoverflow.com/transcript/message/35836840#35836840

from itsdangerous.

untitaker avatar untitaker commented on August 23, 2024

I would vote to still upgrade to sha256 for added security.

from itsdangerous.

davidism avatar davidism commented on August 23, 2024

Unfortunately, I'm out of my element here. Is it actually adding any security as opposed to just taking longer to generate longer hashes? I emailed the cryptography-dev mailinglist to see if some devs with more experience in this area could weigh in. (Hopefully that was the right place to ask.)

from itsdangerous.

untitaker avatar untitaker commented on August 23, 2024

With current knowledge it doesn't change anything, but it just seems generally safer should that knowledge change.

from itsdangerous.

davidism avatar davidism commented on August 23, 2024

See #80, I'm upgrading this to SHA-512 after more discussion.

from itsdangerous.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.