It's Dangerous, a Python cryptographic signing module
packages.python.org
It's Dangerous, a Python cryptographic signing module
1–10 of 60 posts
Re: It's Dangerous, a Python cryptographic signing module
#2- The signature: SHA1 HMAC of data and, optionally, a timestamp to expire signatures.
- HMAC key derivation: SHA1 of a secret key and a salt.
Re: It's Dangerous, a Python cryptographic signing module
#3I repeat: do not use SHA-1 in new applications. Do not use this module.
Re: It's Dangerous, a Python cryptographic signing module
#4Executive summary: - The signature: SHA1 HMAC of data and, optionally, a timestamp to expire signatures. - HMAC key derivation: SHA1 of a secret key and a salt.
Note to non-cryptographers: do not use low-entropy (password-ish) secretswith this, they can be bruteforced. (Using bcrypt/scrypt/PBKDF2 instead would fix this.)
Re: It's Dangerous, a Python cryptographic signing module
#5Use of SHA-1 for this signature/MAC purposes in new applications is deprecated and will be disallowed from next year (source: NIST). I repeat: do not use SHA-1 in new applications. Do not use this module.
Sometime soon I believe SHA-3 will be chosen and we'll all be able to move onto that.
Re: It's Dangerous, a Python cryptographic signing module
#6Use of SHA-1 for this signature/MAC purposes in new applications is deprecated and will be disallowed from next year (source: NIST). I repeat: do not use SHA-1 in new applications. Do not use this module.
I bet that as soon as standards bodies (like NIST) actively encourage you to use better hash functions (which they will probably do soon) the developer of this module will decide on what is safe enough for this purpose.
Re: It's Dangerous, a Python cryptographic signing module
#7Use of SHA-1 for this signature/MAC purposes in new applications is deprecated and will be disallowed from next year (source: NIST). I repeat: do not use SHA-1 in new applications. Do not use this module.
Well then fork it and make it use HMAC with SHA256/512... Additionally, "Do not use this module" is bad advice if it leads to someone making their own MAC implementation, because that's almost always a bad idea. HMAC-SHA1 still is good security for this purpose. I bet that as soon as standards bodies (like NIST) actively encourage you to use better hash functions (which they will probably do soon) the developer of th…
https://github.com/mitsuhiko/itsdangerous/blob/59f3bf7877e21...
And the tests, of course.
Re: It's Dangerous, a Python cryptographic signing module
#8Earlier quoted context omitted.
Well then fork it and make it use HMAC with SHA256/512... Additionally, "Do not use this module" is bad advice if it leads to someone making their own MAC implementation, because that's almost always a bad idea. HMAC-SHA1 still is good security for this purpose. I bet that as soon as standards bodies (like NIST) actively encourage you to use better hash functions (which they will probably do soon) the developer of th…
It shouldn't be more than changing those two lines: https://github.com/mitsuhiko/itsdangerous/blob/59f3bf7877e21... And the tests, of course.
Re: It's Dangerous, a Python cryptographic signing module
#9Use of SHA-1 for this signature/MAC purposes in new applications is deprecated and will be disallowed from next year (source: NIST). I repeat: do not use SHA-1 in new applications. Do not use this module.
Well then fork it and make it use HMAC with SHA256/512... Additionally, "Do not use this module" is bad advice if it leads to someone making their own MAC implementation, because that's almost always a bad idea. HMAC-SHA1 still is good security for this purpose. I bet that as soon as standards bodies (like NIST) actively encourage you to use better hash functions (which they will probably do soon) the developer of th…
Part of security is being up-to-date in regards to things like hashes. If authors don't update their own libraries and you need to tweak them manually, how is it different from "writing your own"?