doc/stdlib.txt
author Laurent Peuch <cortex@worlddomination.be>
Fri, 12 Apr 2019 12:31:14 +0200
changeset 12584 6eba53763482
parent 5767 1d811df051c2
permissions -rw-r--r--
Use secure hash algorithm in WebConfiguration.sign_text Fix: PendingDeprecationWarning: HMAC() without an explicit digestmod argument is deprecated. The default hash algorithm used by hmac.new is md5. As of today, md5 is so weak that it's the equivalent of plaintext and can't be considered to be secured at all. Therefor, we switch to a secure hash algorithm. The rational for choosing sha3_512 is: * the recommended algorithm is at least sha_256 * the stronger, the more secured and sha3_512 is the stronger available * thinking about the future this should keep this part of the code safe long enough before people think about checking it again You can read more about choosing a secure hash algorithm in the NIST recommendations https://csrc.nist.gov/Projects/Hash-Functions/NIST-Policy-on-Hash-Functions This code modification should normally be transparent since check_text_sign is exactly this code 'self.sign_text(text) == signature' and that sign_text is only used in combination with it. The only impact is that the hash is going to move from 32 char to 128 which might make html page a bit bigger and that sha3_512 is slow to compute (which is a good thing for security)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2432
986718a355fa [stdlib] list of cubes included in the cubes standard library
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff changeset
     1
addressbook
986718a355fa [stdlib] list of cubes included in the cubes standard library
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff changeset
     2
basket
986718a355fa [stdlib] list of cubes included in the cubes standard library
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff changeset
     3
blog
986718a355fa [stdlib] list of cubes included in the cubes standard library
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff changeset
     4
book
986718a355fa [stdlib] list of cubes included in the cubes standard library
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff changeset
     5
calendar
986718a355fa [stdlib] list of cubes included in the cubes standard library
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff changeset
     6
comment
986718a355fa [stdlib] list of cubes included in the cubes standard library
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff changeset
     7
company
986718a355fa [stdlib] list of cubes included in the cubes standard library
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff changeset
     8
email
986718a355fa [stdlib] list of cubes included in the cubes standard library
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff changeset
     9
file
986718a355fa [stdlib] list of cubes included in the cubes standard library
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff changeset
    10
folder
986718a355fa [stdlib] list of cubes included in the cubes standard library
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff changeset
    11
i18ncontent
986718a355fa [stdlib] list of cubes included in the cubes standard library
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff changeset
    12
keyword
986718a355fa [stdlib] list of cubes included in the cubes standard library
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff changeset
    13
link
986718a355fa [stdlib] list of cubes included in the cubes standard library
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff changeset
    14
mailinglist
986718a355fa [stdlib] list of cubes included in the cubes standard library
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff changeset
    15
person
986718a355fa [stdlib] list of cubes included in the cubes standard library
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff changeset
    16
tag
986718a355fa [stdlib] list of cubes included in the cubes standard library
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff changeset
    17
timeseries
986718a355fa [stdlib] list of cubes included in the cubes standard library
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff changeset
    18
vcsfile