2018-07-04 09:06:45 +00:00
|
|
|
|
# Copyright (C) 2001-2018, Python Software Foundation
|
2018-07-04 09:08:42 +00:00
|
|
|
|
# For licence information, see README file.
|
2016-10-30 09:46:26 +00:00
|
|
|
|
#
|
|
|
|
|
msgid ""
|
|
|
|
|
msgstr ""
|
2019-12-05 22:15:54 +00:00
|
|
|
|
"Project-Id-Version: Python 3\n"
|
2016-10-30 09:46:26 +00:00
|
|
|
|
"Report-Msgid-Bugs-To: \n"
|
2023-07-23 12:39:39 +00:00
|
|
|
|
"POT-Creation-Date: 2023-07-23 14:38+0200\n"
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"PO-Revision-Date: 2023-03-22 22:13+0100\n"
|
2019-03-26 16:38:57 +00:00
|
|
|
|
"Last-Translator: Jules Lasne <jules.lasne@gmail.com>\n"
|
2018-07-04 09:14:25 +00:00
|
|
|
|
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
|
2017-05-23 22:40:56 +00:00
|
|
|
|
"Language: fr\n"
|
2016-10-30 09:46:26 +00:00
|
|
|
|
"MIME-Version: 1.0\n"
|
|
|
|
|
"Content-Type: text/plain; charset=UTF-8\n"
|
|
|
|
|
"Content-Transfer-Encoding: 8bit\n"
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"X-Generator: Poedit 3.2.1\n"
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2020-07-20 08:45:25 +00:00
|
|
|
|
#: library/hashlib.rst:2
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgid ":mod:`hashlib` --- Secure hashes and message digests"
|
|
|
|
|
msgstr ""
|
2018-11-30 17:31:31 +00:00
|
|
|
|
":mod:`hashlib` --- Algorithmes de hachage sécurisés et synthèse de messages"
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2020-07-20 08:45:25 +00:00
|
|
|
|
#: library/hashlib.rst:10
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgid "**Source code:** :source:`Lib/hashlib.py`"
|
|
|
|
|
msgstr "**Code source :** :source:`Lib/hashlib.py`"
|
|
|
|
|
|
2020-07-20 08:45:25 +00:00
|
|
|
|
#: library/hashlib.rst:23
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#, fuzzy
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"This module implements a common interface to many different secure hash and "
|
|
|
|
|
"message digest algorithms. Included are the FIPS secure hash algorithms "
|
2023-07-23 12:39:39 +00:00
|
|
|
|
"SHA1, SHA224, SHA256, SHA384, SHA512, (defined in `the FIPS 180-4 "
|
|
|
|
|
"standard`_), the SHA-3 series (defined in `the FIPS 202 standard`_) as well "
|
|
|
|
|
"as RSA's MD5 algorithm (defined in internet :rfc:`1321`). The terms "
|
|
|
|
|
"\"secure hash\" and \"message digest\" are interchangeable. Older "
|
|
|
|
|
"algorithms were called message digests. The modern term is secure hash."
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgstr ""
|
2018-11-30 17:31:31 +00:00
|
|
|
|
"Ce module implémente une interface commune à différents algorithmes de "
|
|
|
|
|
"hachage sécurisés et de synthèse de messages. Sont inclus les algorithmes "
|
|
|
|
|
"standards FIPS de hachage SHA1, SHA224, SHA256, SHA384, et SHA512 (définis "
|
|
|
|
|
"dans FIPS 180-2) ainsi que l'algorithme MD5 de RSA (défini par la :rfc:"
|
|
|
|
|
"`1321`). Les termes \"algorithmes de hachage sécurisé\" et \"algorithme de "
|
|
|
|
|
"synthèse de message\" sont interchangeables. Les anciens algorithmes étaient "
|
|
|
|
|
"appelés\" algorithmes de synthèse de messages\". Le terme moderne est "
|
|
|
|
|
"\"algorithme de hachage sécurisé\"."
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:33
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"If you want the adler32 or crc32 hash functions, they are available in the :"
|
|
|
|
|
"mod:`zlib` module."
|
|
|
|
|
msgstr ""
|
2018-11-30 17:31:31 +00:00
|
|
|
|
"Si vous préférez utiliser les fonctions de hachage *adler32* ou *crc32*, "
|
|
|
|
|
"elles sont disponibles dans le module :mod:`zlib`."
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:40
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgid "Hash algorithms"
|
2018-11-30 17:31:31 +00:00
|
|
|
|
msgstr "Algorithmes de hachage"
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:42
|
|
|
|
|
#, fuzzy
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"There is one constructor method named for each type of :dfn:`hash`. All "
|
|
|
|
|
"return a hash object with the same simple interface. For example: use :func:"
|
|
|
|
|
"`sha256` to create a SHA-256 hash object. You can now feed this object with :"
|
|
|
|
|
"term:`bytes-like objects <bytes-like object>` (normally :class:`bytes`) "
|
2023-07-23 12:39:39 +00:00
|
|
|
|
"using the :meth:`update<hash.update>` method. At any point you can ask it "
|
|
|
|
|
"for the :dfn:`digest` of the concatenation of the data fed to it so far "
|
|
|
|
|
"using the :meth:`digest()<hash.digest>` or :meth:`hexdigest()<hash."
|
|
|
|
|
"hexdigest>` methods."
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgstr ""
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"Il y a un constructeur nommé selon chaque type de calcul d'empreinte (:dfn:"
|
|
|
|
|
"`hash`). Tous renvoient un objet haché avec la même interface. Par exemple : "
|
|
|
|
|
"utilisez :func:`sha256` pour créer un objet de calcul d'empreinte avec "
|
|
|
|
|
"l'algorithme SHA-256. Vous pouvez maintenant utiliser cet objet avec des :"
|
|
|
|
|
"term:`objets octets-compatibles <bytes-like object>` (normalement des :class:"
|
|
|
|
|
"`bytes`) en utilisant la méthode :meth:`update`. À tout moment vous pouvez "
|
|
|
|
|
"demander l'empreinte (aussi appelée le :dfn:`digest` ou le condensat) de la "
|
|
|
|
|
"concaténation des données fournies en utilisant les méthodes :meth:`digest` "
|
|
|
|
|
"ou :meth:`hexdigest`."
|
|
|
|
|
|
|
|
|
|
# suit un :
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:50
|
|
|
|
|
#, fuzzy
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgid ""
|
2023-07-23 12:39:39 +00:00
|
|
|
|
"To allow multithreading, the Python :term:`GIL` is released while computing "
|
|
|
|
|
"a hash supplied more than 2047 bytes of data at once in its constructor or :"
|
|
|
|
|
"meth:`.update<hash.update>` method."
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgstr ""
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"pour de meilleures performances avec de multiples fils d'exécution, le :term:"
|
2018-11-30 17:31:31 +00:00
|
|
|
|
"`GIL` Python est relâché pour des données dont la taille est supérieure à "
|
|
|
|
|
"2047 octets lors de leur création ou leur mise à jour."
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:57
|
|
|
|
|
#, fuzzy
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"Constructors for hash algorithms that are always present in this module are :"
|
|
|
|
|
"func:`sha1`, :func:`sha224`, :func:`sha256`, :func:`sha384`, :func:"
|
2023-07-23 12:39:39 +00:00
|
|
|
|
"`sha512`, :func:`sha3_224`, :func:`sha3_256`, :func:`sha3_384`, :func:"
|
|
|
|
|
"`sha3_512`, :func:`shake_128`, :func:`shake_256`, :func:`blake2b`, and :func:"
|
|
|
|
|
"`blake2s`. :func:`md5` is normally available as well, though it may be "
|
|
|
|
|
"missing or blocked if you are using a rare \"FIPS compliant\" build of "
|
|
|
|
|
"Python. These correspond to :data:`algorithms_guaranteed`."
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgstr ""
|
2018-11-30 17:31:31 +00:00
|
|
|
|
"Les constructeurs pour les algorithmes de hachage qui sont toujours présents "
|
|
|
|
|
"dans ce module sont :func:`sha1`, :func:`sha224`, :func:`sha256`, :func:"
|
|
|
|
|
"`sha384`, :func:`sha512`, :func:`blake2b`, et :func:`blake2s`. :func:`md5` "
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"est normalement disponible aussi, mais il peut être manquant ou bloqué si "
|
|
|
|
|
"vous utilisez une forme rare de Python « conforme FIPS ». Des algorithmes "
|
|
|
|
|
"additionnels peuvent aussi être disponibles en fonction de la bibliothèque "
|
2018-11-30 17:31:31 +00:00
|
|
|
|
"OpenSSL que Python utilise sur votre plate-forme. Sur la plupart des plates-"
|
|
|
|
|
"formes les fonctions :func:`sha3_224`, :func:`sha3_256`, :func:`sha3_384`, :"
|
|
|
|
|
"func:`sha3_512`, :func:`shake_128`, :func:`shake_256` sont aussi disponibles."
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:65
|
|
|
|
|
msgid ""
|
|
|
|
|
"Additional algorithms may also be available if your Python distribution's :"
|
|
|
|
|
"mod:`hashlib` was linked against a build of OpenSSL that provides others. "
|
|
|
|
|
"Others *are not guaranteed available* on all installations and will only be "
|
|
|
|
|
"accessible by name via :func:`new`. See :data:`algorithms_available`."
|
|
|
|
|
msgstr ""
|
|
|
|
|
|
|
|
|
|
#: library/hashlib.rst:72
|
|
|
|
|
#, fuzzy
|
|
|
|
|
msgid ""
|
|
|
|
|
"Some algorithms have known hash collision weaknesses (including MD5 and "
|
|
|
|
|
"SHA1). Refer to `Attacks on cryptographic hash algorithms`_ and the `hashlib-"
|
|
|
|
|
"seealso`_ section at the end of this document."
|
|
|
|
|
msgstr ""
|
|
|
|
|
"Certains algorithmes ont des faiblesses connues relatives à la collision, se "
|
|
|
|
|
"référer à la section \"Voir aussi\" à la fin."
|
|
|
|
|
|
2023-03-23 11:08:08 +00:00
|
|
|
|
# suit un :
|
2020-07-20 08:45:25 +00:00
|
|
|
|
#: library/hashlib.rst:76
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#, fuzzy
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"SHA3 (Keccak) and SHAKE constructors :func:`sha3_224`, :func:`sha3_256`, :"
|
2023-07-23 12:39:39 +00:00
|
|
|
|
"func:`sha3_384`, :func:`sha3_512`, :func:`shake_128`, :func:`shake_256` were "
|
|
|
|
|
"added."
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgstr ""
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"les constructeurs SHA3 (Keccak) et SHAKE :func:`sha3_224`, :func:"
|
2018-11-30 17:31:31 +00:00
|
|
|
|
"`sha3_256`, :func:`sha3_384`, :func:`sha3_512`, :func:`shake_128`, :func:"
|
|
|
|
|
"`shake_256`."
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2023-03-23 11:08:08 +00:00
|
|
|
|
# suit un :
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:81
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgid ":func:`blake2b` and :func:`blake2s` were added."
|
2023-03-23 11:08:08 +00:00
|
|
|
|
msgstr "les fonctions :func:`blake2b` et :func:`blake2s` ont été ajoutées."
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2023-03-23 11:08:08 +00:00
|
|
|
|
# suit un :
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:86
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgid ""
|
2020-07-20 08:56:42 +00:00
|
|
|
|
"All hashlib constructors take a keyword-only argument *usedforsecurity* with "
|
|
|
|
|
"default value ``True``. A false value allows the use of insecure and blocked "
|
|
|
|
|
"hashing algorithms in restricted environments. ``False`` indicates that the "
|
|
|
|
|
"hashing algorithm is not used in a security context, e.g. as a non-"
|
|
|
|
|
"cryptographic one-way compression function."
|
|
|
|
|
msgstr ""
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"tous les constructeurs de *hashlib* prennent un argument mot-clé uniquement "
|
|
|
|
|
"*usedforsecurity* avec la valeur par défaut ``True``. Une valeur fausse "
|
|
|
|
|
"permet l'utilisation d'algorithmes de hachage non sécurisés et bloqués dans "
|
|
|
|
|
"des environnements restreints. ``False`` indique que l'algorithme de hachage "
|
|
|
|
|
"ne sera pas utilisé dans un contexte de sécurité, par exemple en tant que "
|
|
|
|
|
"fonction de compression à sens unique non cryptographique."
|
2020-07-20 08:56:42 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:93
|
|
|
|
|
#, fuzzy
|
|
|
|
|
msgid "Hashlib now uses SHA3 and SHAKE from OpenSSL if it provides it."
|
2020-07-20 08:56:42 +00:00
|
|
|
|
msgstr ""
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"*Hashlib* utilise désormais SHA3 et SHAKE d'OpenSSL 1.1.1 et plus récents."
|
2020-07-20 08:56:42 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:97
|
|
|
|
|
msgid "Usage"
|
|
|
|
|
msgstr ""
|
|
|
|
|
|
|
|
|
|
#: library/hashlib.rst:99
|
|
|
|
|
#, fuzzy
|
2020-07-20 08:56:42 +00:00
|
|
|
|
msgid ""
|
2023-07-23 12:39:39 +00:00
|
|
|
|
"To obtain the digest of the byte string ``b\"Nobody inspects the spammish "
|
|
|
|
|
"repetition\"``::"
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgstr ""
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"Par exemple, pour obtenir l'empreinte de la chaîne ``b\"Nobody inspects the "
|
|
|
|
|
"spammish repetition\"`` ::"
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:111
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgid "More condensed:"
|
2023-04-14 11:16:50 +00:00
|
|
|
|
msgstr "En plus condensé :"
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:117
|
|
|
|
|
#, fuzzy
|
|
|
|
|
msgid "Constructors"
|
|
|
|
|
msgstr "Constantes"
|
|
|
|
|
|
|
|
|
|
#: library/hashlib.rst:121
|
|
|
|
|
#, fuzzy
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgid ""
|
2018-08-13 13:12:45 +00:00
|
|
|
|
"Is a generic constructor that takes the string *name* of the desired "
|
|
|
|
|
"algorithm as its first parameter. It also exists to allow access to the "
|
|
|
|
|
"above listed hashes as well as any other algorithms that your OpenSSL "
|
2023-07-23 12:39:39 +00:00
|
|
|
|
"library may offer."
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgstr ""
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"Constructeur générique qui prend comme premier paramètre le nom de "
|
|
|
|
|
"l'algorithme désiré (*name*). Il existe pour permettre l'accès aux "
|
2018-11-30 17:31:31 +00:00
|
|
|
|
"algorithmes listés ci-dessus ainsi qu'aux autres algorithmes que votre "
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"bibliothèque OpenSSL peut offrir. Les constructeurs nommés sont beaucoup "
|
|
|
|
|
"plus rapides que :func:`new` et doivent être privilégiés."
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:126
|
|
|
|
|
#, fuzzy
|
|
|
|
|
msgid "Using :func:`new` with an algorithm name:"
|
2023-04-14 11:16:50 +00:00
|
|
|
|
msgstr "En utilisant :func:`new` avec un algorithme fourni par OpenSSL :"
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:145
|
|
|
|
|
msgid ""
|
|
|
|
|
"Named constructors such as these are faster than passing an algorithm name "
|
|
|
|
|
"to :func:`new`."
|
|
|
|
|
msgstr ""
|
|
|
|
|
|
|
|
|
|
#: library/hashlib.rst:149
|
|
|
|
|
msgid "Attributes"
|
|
|
|
|
msgstr ""
|
|
|
|
|
|
|
|
|
|
#: library/hashlib.rst:151
|
|
|
|
|
#, fuzzy
|
|
|
|
|
msgid "Hashlib provides the following constant module attributes:"
|
2023-04-14 11:16:50 +00:00
|
|
|
|
msgstr "*Hashlib* fournit les constantes suivantes :"
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:155
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"A set containing the names of the hash algorithms guaranteed to be supported "
|
|
|
|
|
"by this module on all platforms. Note that 'md5' is in this list despite "
|
|
|
|
|
"some upstream vendors offering an odd \"FIPS compliant\" Python build that "
|
|
|
|
|
"excludes it."
|
|
|
|
|
msgstr ""
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"Ensemble contenant les noms des algorithmes de hachage garantis d'être "
|
2018-11-30 17:31:31 +00:00
|
|
|
|
"implémentés par ce module sur toutes les plate-formes. Notez que *md5* est "
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"dans cette liste bien que certains éditeurs diffusent une implémentation "
|
|
|
|
|
"Python dont la bibliothèque « compatible FIPS » le bloque."
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:164
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"A set containing the names of the hash algorithms that are available in the "
|
|
|
|
|
"running Python interpreter. These names will be recognized when passed to :"
|
|
|
|
|
"func:`new`. :attr:`algorithms_guaranteed` will always be a subset. The "
|
|
|
|
|
"same algorithm may appear multiple times in this set under different names "
|
|
|
|
|
"(thanks to OpenSSL)."
|
|
|
|
|
msgstr ""
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"Ensemble contenant les noms des algorithmes de hachage disponibles dans "
|
2018-11-30 17:31:31 +00:00
|
|
|
|
"l'interpréteur Python. Ces noms sont reconnus lorsqu'ils sont passés à la "
|
|
|
|
|
"fonction :func:`new`. :attr:`algorithms_guaranteed` est toujours un sous-"
|
|
|
|
|
"ensemble. Le même algorithme peut apparaître plusieurs fois dans cet "
|
|
|
|
|
"ensemble sous un nom différent (grâce à OpenSSL)."
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:173
|
|
|
|
|
#, fuzzy
|
|
|
|
|
msgid "Hash Objects"
|
|
|
|
|
msgstr "Création d'objets de calcul d'empreinte"
|
|
|
|
|
|
|
|
|
|
#: library/hashlib.rst:175
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"The following values are provided as constant attributes of the hash objects "
|
|
|
|
|
"returned by the constructors:"
|
|
|
|
|
msgstr ""
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"Les valeurs suivantes sont fournies en tant qu'attributs constants des "
|
2023-04-14 11:16:50 +00:00
|
|
|
|
"objets de calcul d'empreintes renvoyés par les constructeurs :"
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:180
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgid "The size of the resulting hash in bytes."
|
2019-03-26 16:38:57 +00:00
|
|
|
|
msgstr "La taille du *hash* résultant en octets."
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:184
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgid "The internal block size of the hash algorithm in bytes."
|
2018-11-30 17:31:31 +00:00
|
|
|
|
msgstr "La taille interne d'un bloc de l'algorithme de hachage en octets."
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:186
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgid "A hash object has the following attributes:"
|
2023-04-14 11:16:50 +00:00
|
|
|
|
msgstr "L'objet de hachage possède les attributs suivants :"
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:190
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"The canonical name of this hash, always lowercase and always suitable as a "
|
|
|
|
|
"parameter to :func:`new` to create another hash of this type."
|
|
|
|
|
msgstr ""
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"Le nom canonique de cette fonction de hachage, toujours en minuscule et que "
|
|
|
|
|
"vous pouvez toujours transmettre à la fonction :func:`new` pour créer un "
|
|
|
|
|
"autre objet de calcul d'empreinte de ce type."
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2023-03-23 11:08:08 +00:00
|
|
|
|
# suit un :
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:193
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"The name attribute has been present in CPython since its inception, but "
|
|
|
|
|
"until Python 3.4 was not formally specified, so may not exist on some "
|
|
|
|
|
"platforms."
|
|
|
|
|
msgstr ""
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"l'attribut *name* est présent dans CPython depuis sa création, mais n'était "
|
2018-11-30 17:31:31 +00:00
|
|
|
|
"pas spécifié formellement jusqu'à Python 3.4, il peut ne pas exister sur "
|
|
|
|
|
"certaines plate-formes."
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:198
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgid "A hash object has the following methods:"
|
2023-04-14 11:16:50 +00:00
|
|
|
|
msgstr "L'objet de calcul d'empreinte possède les méthodes suivantes :"
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:203
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgid ""
|
2018-08-13 13:12:45 +00:00
|
|
|
|
"Update the hash object with the :term:`bytes-like object`. Repeated calls "
|
|
|
|
|
"are equivalent to a single call with the concatenation of all the arguments: "
|
|
|
|
|
"``m.update(a); m.update(b)`` is equivalent to ``m.update(a+b)``."
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgstr ""
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"Met à jour l'objet de hachage avec :term:`bytes-like object`. Les appels "
|
|
|
|
|
"répétés sont équivalents à un simple appel avec la concaténation de tous les "
|
|
|
|
|
"arguments : ``m.update(a); m.update(b)`` est équivalent à ``m.update(a+b)``."
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2023-03-23 11:08:08 +00:00
|
|
|
|
# suit un :
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:208
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"The Python GIL is released to allow other threads to run while hash updates "
|
|
|
|
|
"on data larger than 2047 bytes is taking place when using hash algorithms "
|
|
|
|
|
"supplied by OpenSSL."
|
|
|
|
|
msgstr ""
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"le GIL Python est relâché pour permettre aux autres fils d'exécution de "
|
2018-11-30 17:31:31 +00:00
|
|
|
|
"tourner pendant que la fonction de hachage met à jour des données plus "
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"longues que 2047 octets, lorsque les algorithmes fournis par OpenSSL sont "
|
2018-11-30 17:31:31 +00:00
|
|
|
|
"utilisés."
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:216
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"Return the digest of the data passed to the :meth:`update` method so far. "
|
|
|
|
|
"This is a bytes object of size :attr:`digest_size` which may contain bytes "
|
|
|
|
|
"in the whole range from 0 to 255."
|
|
|
|
|
msgstr ""
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"Renvoie l'empreinte (le *hash*) des données passées à la méthode :meth:"
|
|
|
|
|
"`update`. C'est un objet de type *bytes* de taille :attr:`digest_size` qui "
|
|
|
|
|
"contient des octets dans l'intervalle 0 à 255."
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:223
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"Like :meth:`digest` except the digest is returned as a string object of "
|
|
|
|
|
"double length, containing only hexadecimal digits. This may be used to "
|
|
|
|
|
"exchange the value safely in email or other non-binary environments."
|
|
|
|
|
msgstr ""
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"Comme la méthode :meth:`digest` sauf que l'empreinte renvoyée est une chaîne "
|
|
|
|
|
"de caractères dont la longueur est double, contenant seulement des chiffres "
|
|
|
|
|
"hexadécimaux. Elle peut être utilisée pour échanger sans risque des valeurs "
|
2018-11-30 17:31:31 +00:00
|
|
|
|
"dans les *e-mails* ou dans les environnements non binaires."
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:230
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"Return a copy (\"clone\") of the hash object. This can be used to "
|
|
|
|
|
"efficiently compute the digests of data sharing a common initial substring."
|
|
|
|
|
msgstr ""
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"Renvoie une copie (\"clone\") de l'objet de calcul de hachage. Cela peut "
|
|
|
|
|
"être utilisé pour calculer efficacement des empreintes de données qui "
|
|
|
|
|
"commencent par la même sous-chaine."
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:235
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgid "SHAKE variable length digests"
|
2023-03-23 11:08:08 +00:00
|
|
|
|
msgstr "Empreintes de messages de taille variable SHAKE"
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:240
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"The :func:`shake_128` and :func:`shake_256` algorithms provide variable "
|
|
|
|
|
"length digests with length_in_bits//2 up to 128 or 256 bits of security. As "
|
|
|
|
|
"such, their digest methods require a length. Maximum length is not limited "
|
|
|
|
|
"by the SHAKE algorithm."
|
|
|
|
|
msgstr ""
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"Les algorithmes :func:`shake_128` et :func:`shake_256` produisent des "
|
|
|
|
|
"empreintes (ou condensats) de longueur variable avec des "
|
|
|
|
|
"``longueurs_en_bits // 2`` jusqu'à 128 ou 256 bits. Leurs méthodes de calcul "
|
|
|
|
|
"d'empreinte requièrent une longueur. Les longueurs maximales ne sont pas "
|
|
|
|
|
"limitées par l'algorithme SHAKE."
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:247
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"Return the digest of the data passed to the :meth:`update` method so far. "
|
2018-08-13 13:12:45 +00:00
|
|
|
|
"This is a bytes object of size *length* which may contain bytes in the whole "
|
|
|
|
|
"range from 0 to 255."
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgstr ""
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"Renvoie l'empreinte des données passées à la méthode :meth:`update`. C'est "
|
2018-11-30 17:31:31 +00:00
|
|
|
|
"un objet de type *bytes* de taille *length* qui contient des octets dans "
|
|
|
|
|
"l'intervalle 0 à 255."
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:254
|
|
|
|
|
#, fuzzy
|
|
|
|
|
msgid ""
|
|
|
|
|
"Like :meth:`digest` except the digest is returned as a string object of "
|
|
|
|
|
"double length, containing only hexadecimal digits. This may be used to "
|
|
|
|
|
"exchange the value in email or other non-binary environments."
|
|
|
|
|
msgstr ""
|
|
|
|
|
"Comme la méthode :meth:`digest` sauf que l'empreinte renvoyée est une chaîne "
|
|
|
|
|
"de caractères dont la longueur est double, contenant seulement des chiffres "
|
|
|
|
|
"hexadécimaux. Elle peut être utilisée pour échanger sans risque des valeurs "
|
|
|
|
|
"dans les *e-mails* ou dans les environnements non binaires."
|
|
|
|
|
|
|
|
|
|
#: library/hashlib.rst:258
|
|
|
|
|
#, fuzzy
|
|
|
|
|
msgid "Example use:"
|
|
|
|
|
msgstr "Exemple :"
|
|
|
|
|
|
|
|
|
|
#: library/hashlib.rst:265
|
2022-03-23 17:40:12 +00:00
|
|
|
|
msgid "File hashing"
|
2023-03-23 11:08:08 +00:00
|
|
|
|
msgstr "Calcul d'empreinte (ou hachage) de fichiers"
|
2022-03-23 17:40:12 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:267
|
2022-03-23 17:40:12 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"The hashlib module provides a helper function for efficient hashing of a "
|
|
|
|
|
"file or file-like object."
|
|
|
|
|
msgstr ""
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"Le module *hashlib* fournit une fonction utilitaire pour calculer "
|
|
|
|
|
"efficacement l'empreinte (aussi appelée condensat) d'un fichier ou d'un "
|
|
|
|
|
"objet fichier-compatible."
|
2022-03-23 17:40:12 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:272
|
2022-03-23 17:40:12 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"Return a digest object that has been updated with contents of file object."
|
|
|
|
|
msgstr ""
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"Renvoie un objet de calcul d'empreinte qui a été mis à jour avec le contenu "
|
|
|
|
|
"de *fileobj*."
|
2022-03-23 17:40:12 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:274
|
2022-03-23 17:40:12 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"*fileobj* must be a file-like object opened for reading in binary mode. It "
|
|
|
|
|
"accepts file objects from builtin :func:`open`, :class:`~io.BytesIO` "
|
|
|
|
|
"instances, SocketIO objects from :meth:`socket.socket.makefile`, and "
|
|
|
|
|
"similar. The function may bypass Python's I/O and use the file descriptor "
|
|
|
|
|
"from :meth:`~io.IOBase.fileno` directly. *fileobj* must be assumed to be in "
|
|
|
|
|
"an unknown state after this function returns or raises. It is up to the "
|
|
|
|
|
"caller to close *fileobj*."
|
|
|
|
|
msgstr ""
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"*fileobj* doit être un objet fichier-compatible ouvert en lecture en mode "
|
|
|
|
|
"binaire. Sont acceptés les instances d'objets fichiers produites par la "
|
|
|
|
|
"fonction native :func:`open`, :class:`~io.BytesIO`, les objets connecteurs "
|
|
|
|
|
"produits par :meth:`socket.socket.makefile` et similaires. La fonction peut "
|
|
|
|
|
"court-circuiter les entrées-sorties de Python et utiliser directement le "
|
|
|
|
|
"descripteur de fichier de :meth:`~io.IOBase.fileno`. Vous devez supposer que "
|
|
|
|
|
"*fileobj* est dans un état inconnu après le retour de cette fonction ou si "
|
|
|
|
|
"elle a levé une exception. C'est à l'appelant de fermer *fileobj*."
|
2022-03-23 17:40:12 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:282
|
2022-03-23 17:40:12 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"*digest* must either be a hash algorithm name as a *str*, a hash "
|
|
|
|
|
"constructor, or a callable that returns a hash object."
|
|
|
|
|
msgstr ""
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"*digest* doit être un nom d'algorithme de hachage fourni en tant que *str*, "
|
|
|
|
|
"un constructeur de hachage ou un appelable qui renvoie un objet de hachage."
|
2022-03-23 17:40:12 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:285
|
2022-03-23 17:40:12 +00:00
|
|
|
|
msgid "Example:"
|
2023-03-23 11:08:08 +00:00
|
|
|
|
msgstr "Exemple :"
|
2022-03-23 17:40:12 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:308
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgid "Key derivation"
|
2018-11-30 17:31:31 +00:00
|
|
|
|
msgstr "Dérivation de clé"
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:310
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"Key derivation and key stretching algorithms are designed for secure "
|
|
|
|
|
"password hashing. Naive algorithms such as ``sha1(password)`` are not "
|
|
|
|
|
"resistant against brute-force attacks. A good password hashing function must "
|
2023-01-15 21:42:07 +00:00
|
|
|
|
"be tunable, slow, and include a `salt <https://en.wikipedia.org/wiki/"
|
|
|
|
|
"Salt_%28cryptography%29>`_."
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgstr ""
|
2018-11-30 17:31:31 +00:00
|
|
|
|
"Les algorithmes de dérivation de clés et d'étirement de clés sont conçus "
|
|
|
|
|
"pour le hachage sécurisé de mots de passe. Des algorithmes naïfs comme "
|
|
|
|
|
"``sha1(password)`` ne sont pas résistants aux attaques par force brute. Une "
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"bonne fonction de hachage doit être paramétrable, lente et inclure un "
|
|
|
|
|
"`salage <https://fr.wikipedia.org/wiki/Salage_(cryptographie)>`_."
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:318
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"The function provides PKCS#5 password-based key derivation function 2. It "
|
|
|
|
|
"uses HMAC as pseudorandom function."
|
|
|
|
|
msgstr ""
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"La fonction fournit une fonction de dérivation conforme à PKCS#5 (*Public "
|
|
|
|
|
"Key Cryptographic Standards #5 v2.0*). Elle utilise HMAC comme fonction de "
|
|
|
|
|
"génération d'un pseudo-aléa."
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:321
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"The string *hash_name* is the desired name of the hash digest algorithm for "
|
|
|
|
|
"HMAC, e.g. 'sha1' or 'sha256'. *password* and *salt* are interpreted as "
|
|
|
|
|
"buffers of bytes. Applications and libraries should limit *password* to a "
|
|
|
|
|
"sensible length (e.g. 1024). *salt* should be about 16 or more bytes from a "
|
|
|
|
|
"proper source, e.g. :func:`os.urandom`."
|
|
|
|
|
msgstr ""
|
2018-11-30 17:31:31 +00:00
|
|
|
|
"La chaîne de caractères *hash_name* est le nom de l'algorithme de hachage "
|
|
|
|
|
"désiré pour le HMAC, par exemple ``\"sha1\"`` ou ``\"sha256\"``. *password* "
|
|
|
|
|
"et *salt* sont interprétés comme des tampons d'octets. Les applications et "
|
|
|
|
|
"bibliothèques doivent limiter *password* à une longueur raisonnable (comme "
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"``1024``). *salt* doit être de 16 octets ou plus et provenir d'une source "
|
2018-11-30 17:31:31 +00:00
|
|
|
|
"correcte, e.g. :func:`os.urandom`."
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:327
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"The number of *iterations* should be chosen based on the hash algorithm and "
|
2022-03-23 17:40:12 +00:00
|
|
|
|
"computing power. As of 2022, hundreds of thousands of iterations of SHA-256 "
|
|
|
|
|
"are suggested. For rationale as to why and how to choose what is best for "
|
|
|
|
|
"your application, read *Appendix A.2.2* of NIST-SP-800-132_. The answers on "
|
|
|
|
|
"the `stackexchange pbkdf2 iterations question`_ explain in detail."
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgstr ""
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"Le nombre d'*itérations* doit être choisi en fonction de l'algorithme de "
|
|
|
|
|
"hachage et de la puissance de calcul. À partir de 2022, des centaines de "
|
|
|
|
|
"milliers d'itérations de SHA-256 sont suggérées. Pour savoir pourquoi et "
|
|
|
|
|
"comment choisir ce qui convient le mieux à votre application, lisez "
|
|
|
|
|
"*l'annexe A.2.2* du NIST-SP-800-132_ (ressource en anglais). Les réponses "
|
|
|
|
|
"contenues dans la question sur le site *stackexchange* `nombre d'itérations "
|
|
|
|
|
"recommandées lorsqu'on utilise pbkdf2`_ (page en anglais) expliquent tout en "
|
|
|
|
|
"détail."
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:333
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"*dklen* is the length of the derived key. If *dklen* is ``None`` then the "
|
|
|
|
|
"digest size of the hash algorithm *hash_name* is used, e.g. 64 for SHA-512."
|
|
|
|
|
msgstr ""
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"*dklen* est la longueur de la clé dérivée. Si *dklen* vaut ``None`` alors "
|
|
|
|
|
"Python utilise la taille du condensat produit par l'algorithme de hachage "
|
|
|
|
|
"*hash_name*, par exemple 64 pour SHA-512."
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2023-03-23 11:08:08 +00:00
|
|
|
|
# suit un :
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:346
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"A fast implementation of *pbkdf2_hmac* is available with OpenSSL. The "
|
|
|
|
|
"Python implementation uses an inline version of :mod:`hmac`. It is about "
|
|
|
|
|
"three times slower and doesn't release the GIL."
|
|
|
|
|
msgstr ""
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"une implémentation rapide de *pbkdf2_hmac* est disponible avec OpenSSL. "
|
|
|
|
|
"L'implémentation Python utilise une version *inline* de :mod:`hmac`. Elle "
|
|
|
|
|
"est trois fois plus lente et ne libère pas le GIL."
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2023-03-23 11:08:08 +00:00
|
|
|
|
# suit un :
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:352
|
2021-09-24 08:20:01 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"Slow Python implementation of *pbkdf2_hmac* is deprecated. In the future the "
|
|
|
|
|
"function will only be available when Python is compiled with OpenSSL."
|
|
|
|
|
msgstr ""
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"l'implémentation en Python (lente) de *pbkdf2_hmac* est obsolète. À "
|
|
|
|
|
"l'avenir, la fonction ne sera disponible que lorsque Python est compilé avec "
|
|
|
|
|
"OpenSSL."
|
2021-09-24 08:20:01 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:358
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"The function provides scrypt password-based key derivation function as "
|
|
|
|
|
"defined in :rfc:`7914`."
|
|
|
|
|
msgstr ""
|
2018-11-30 17:31:31 +00:00
|
|
|
|
"La fonction fournit la fonction de dérivation de clé *scrypt* comme définie "
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"dans la :rfc:`7914`."
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:361
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgid ""
|
2018-08-13 13:12:45 +00:00
|
|
|
|
"*password* and *salt* must be :term:`bytes-like objects <bytes-like "
|
|
|
|
|
"object>`. Applications and libraries should limit *password* to a sensible "
|
|
|
|
|
"length (e.g. 1024). *salt* should be about 16 or more bytes from a proper "
|
|
|
|
|
"source, e.g. :func:`os.urandom`."
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgstr ""
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"*password* et *salt* doivent être des :term:`objets octets-compatibles "
|
|
|
|
|
"<bytes-like object>`. Les applications et bibliothèques doivent limiter "
|
|
|
|
|
"*password* à une longueur raisonnable (par ex. 1024). *salt* doit être de 16 "
|
|
|
|
|
"octets ou plus et provenir d'une source correcte, par ex. :func:`os.urandom`."
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:366
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"*n* is the CPU/Memory cost factor, *r* the block size, *p* parallelization "
|
2018-06-28 13:32:56 +00:00
|
|
|
|
"factor and *maxmem* limits memory (OpenSSL 1.1.0 defaults to 32 MiB). "
|
|
|
|
|
"*dklen* is the length of the derived key."
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgstr ""
|
2018-11-30 17:31:31 +00:00
|
|
|
|
"*n* est le facteur de coût CPU/Mémoire, *r* la taille de bloc, *p* le "
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"facteur de parallélisation et *maxmem* limite l'utilisation de la mémoire "
|
|
|
|
|
"(OpenSSL 1.1.0 limite à 32 Mio par défaut). *dklen* est la longueur de la "
|
|
|
|
|
"clé dérivée."
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:374
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgid "BLAKE2"
|
2019-03-26 16:38:57 +00:00
|
|
|
|
msgstr "BLAKE2"
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:381
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid ""
|
2018-06-10 09:32:30 +00:00
|
|
|
|
"BLAKE2_ is a cryptographic hash function defined in :rfc:`7693` that comes "
|
|
|
|
|
"in two flavors:"
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgstr ""
|
2018-11-30 17:31:31 +00:00
|
|
|
|
"BLAKE2_ est une fonction de hachage cryptographique définie dans la :rfc:"
|
2023-04-14 11:16:50 +00:00
|
|
|
|
"`7693` et disponible en deux versions :"
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:384
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"**BLAKE2b**, optimized for 64-bit platforms and produces digests of any size "
|
|
|
|
|
"between 1 and 64 bytes,"
|
|
|
|
|
msgstr ""
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"**BLAKE2b**, optimisée pour les plates-formes 64 bits et produisant des "
|
|
|
|
|
"condensats de toutes tailles entre 1 et 64 octets,"
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:387
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"**BLAKE2s**, optimized for 8- to 32-bit platforms and produces digests of "
|
|
|
|
|
"any size between 1 and 32 bytes."
|
|
|
|
|
msgstr ""
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"**BLAKE2s**, optimisée pour les plates-formes de 8 à 32 bits et produisant "
|
|
|
|
|
"des empreintes de toutes tailles entre 1 et 32 octets."
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:390
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"BLAKE2 supports **keyed mode** (a faster and simpler replacement for HMAC_), "
|
|
|
|
|
"**salted hashing**, **personalization**, and **tree hashing**."
|
|
|
|
|
msgstr ""
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"BLAKE2 gère diverses fonctionnalités comme le **keyed mode** (plus rapide et "
|
|
|
|
|
"plus simple que HMAC_), **salted hashing**, **personalization** et le **tree "
|
|
|
|
|
"hashing**."
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:393
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"Hash objects from this module follow the API of standard library's :mod:"
|
|
|
|
|
"`hashlib` objects."
|
|
|
|
|
msgstr ""
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"Les objets de calcul d'empreinte de ce module suivent l'API des objets du "
|
|
|
|
|
"module :mod:`hashlib` de la bibliothèque standard."
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:398
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid "Creating hash objects"
|
2023-03-23 11:08:08 +00:00
|
|
|
|
msgstr "Création d'objets de calcul d'empreinte"
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:400
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid "New hash objects are created by calling constructor functions:"
|
2023-03-23 11:08:08 +00:00
|
|
|
|
msgstr ""
|
|
|
|
|
"Les nouveaux objets de calcul d'empreinte sont créés en appelant les "
|
2023-04-14 11:16:50 +00:00
|
|
|
|
"constructeurs :"
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:414
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"These functions return the corresponding hash objects for calculating "
|
|
|
|
|
"BLAKE2b or BLAKE2s. They optionally take these general parameters:"
|
|
|
|
|
msgstr ""
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"Ces fonctions produisent l'objet de calcul d'empreinte correspondant aux "
|
2023-04-14 11:16:50 +00:00
|
|
|
|
"algorithmes BLAKE2b ou BLAKE2s. Elles prennent ces paramètres optionnels :"
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:417
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid ""
|
2018-08-13 13:12:45 +00:00
|
|
|
|
"*data*: initial chunk of data to hash, which must be :term:`bytes-like "
|
|
|
|
|
"object`. It can be passed only as positional argument."
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgstr ""
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"*data* : morceau initial de données à hacher, qui doit être un :term:`objet "
|
|
|
|
|
"octets-compatible <bytes-like object>`. Il ne peut être passé que comme "
|
|
|
|
|
"argument positionnel."
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:420
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid "*digest_size*: size of output digest in bytes."
|
2023-03-23 11:08:08 +00:00
|
|
|
|
msgstr "*digest_size* : taille en octets de l'empreinte produite."
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:422
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"*key*: key for keyed hashing (up to 64 bytes for BLAKE2b, up to 32 bytes for "
|
|
|
|
|
"BLAKE2s)."
|
|
|
|
|
msgstr ""
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"*key* : clé pour les codes d'authentification de message *keyed hashing* "
|
2018-11-30 17:31:31 +00:00
|
|
|
|
"(jusqu'à 64 octets pour BLAKE2b, jusqu'à 32 octets pour BLAKE2s)."
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:425
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"*salt*: salt for randomized hashing (up to 16 bytes for BLAKE2b, up to 8 "
|
|
|
|
|
"bytes for BLAKE2s)."
|
|
|
|
|
msgstr ""
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"*salt* : sel pour le hachage randomisé *randomized hashing* (jusqu'à 16 "
|
2019-03-26 16:38:57 +00:00
|
|
|
|
"octets pour BLAKE2b, jusqu'à 8 octets pour BLAKE2s)."
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:428
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"*person*: personalization string (up to 16 bytes for BLAKE2b, up to 8 bytes "
|
|
|
|
|
"for BLAKE2s)."
|
|
|
|
|
msgstr ""
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"*person* : chaîne de personnalisation (jusqu'à 16 octets pour BLAKE2b, "
|
2018-11-30 17:31:31 +00:00
|
|
|
|
"jusqu'à 8 octets pour BLAKE2s)."
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:431
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid "The following table shows limits for general parameters (in bytes):"
|
|
|
|
|
msgstr ""
|
2023-04-14 11:16:50 +00:00
|
|
|
|
"Le tableau suivant présente les limites des paramètres généraux (en octets) :"
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:434
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid "Hash"
|
2019-03-26 16:38:57 +00:00
|
|
|
|
msgstr "Hash"
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:434
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid "digest_size"
|
2019-03-26 16:38:57 +00:00
|
|
|
|
msgstr "digest_size"
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:434
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid "len(key)"
|
2019-03-26 16:38:57 +00:00
|
|
|
|
msgstr "len(key)"
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:434
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid "len(salt)"
|
2019-03-26 16:38:57 +00:00
|
|
|
|
msgstr "len(salt)"
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:434
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid "len(person)"
|
2019-03-26 16:38:57 +00:00
|
|
|
|
msgstr "len(person)"
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:436
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid "BLAKE2b"
|
2019-03-26 16:38:57 +00:00
|
|
|
|
msgstr "BLAKE2b"
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:436
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid "64"
|
2019-03-26 16:38:57 +00:00
|
|
|
|
msgstr "64"
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:436
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid "16"
|
2019-03-26 16:38:57 +00:00
|
|
|
|
msgstr "16"
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:437
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid "BLAKE2s"
|
2019-03-26 16:38:57 +00:00
|
|
|
|
msgstr "BLAKE2s"
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:437
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid "32"
|
2019-03-26 16:38:57 +00:00
|
|
|
|
msgstr "32"
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:437
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid "8"
|
2017-04-03 07:23:36 +00:00
|
|
|
|
msgstr "8"
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-03-23 11:08:08 +00:00
|
|
|
|
# suit un :
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:442
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"BLAKE2 specification defines constant lengths for salt and personalization "
|
|
|
|
|
"parameters, however, for convenience, this implementation accepts byte "
|
|
|
|
|
"strings of any size up to the specified length. If the length of the "
|
|
|
|
|
"parameter is less than specified, it is padded with zeros, thus, for "
|
|
|
|
|
"example, ``b'salt'`` and ``b'salt\\x00'`` is the same value. (This is not "
|
|
|
|
|
"the case for *key*.)"
|
|
|
|
|
msgstr ""
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"les spécifications de BLAKE2 définissent des longueurs constantes pour les "
|
|
|
|
|
"sel et chaînes de personnalisation. Toutefois, par commodité, cette "
|
|
|
|
|
"implémentation accepte des chaînes d'octets de n'importe quelle taille "
|
|
|
|
|
"jusqu'à la longueur spécifiée. Si la longueur du paramètre est moindre par "
|
|
|
|
|
"rapport à celle spécifiée, il est complété par des zéros. Ainsi, par "
|
|
|
|
|
"exemple, ``b'salt'`` et ``b'salt\\x00'`` sont la même valeur (ce n'est pas "
|
|
|
|
|
"le cas pour *key*)."
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:449
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid "These sizes are available as module `constants`_ described below."
|
|
|
|
|
msgstr ""
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"Ces tailles sont disponibles en tant que `constantes`_ du module et décrites "
|
|
|
|
|
"ci-dessous."
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:451
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"Constructor functions also accept the following tree hashing parameters:"
|
|
|
|
|
msgstr ""
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"Les fonctions constructeurs acceptent aussi les paramètres suivants pour le "
|
2023-04-14 11:16:50 +00:00
|
|
|
|
"calcul d'empreintes en mode arbre :"
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:453
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid "*fanout*: fanout (0 to 255, 0 if unlimited, 1 in sequential mode)."
|
2023-03-23 11:08:08 +00:00
|
|
|
|
msgstr ""
|
|
|
|
|
"*fanout* : *étalement* (0 à 255, 0 si illimité, 1 correspond au mode "
|
|
|
|
|
"séquentiel)."
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:455
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"*depth*: maximal depth of tree (1 to 255, 255 if unlimited, 1 in sequential "
|
|
|
|
|
"mode)."
|
|
|
|
|
msgstr ""
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"*depth* : profondeur maximale de l'arbre (1 à 255, 255 si illimité, 1 "
|
|
|
|
|
"correspond au mode séquentiel)."
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:458
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid ""
|
2021-10-22 12:56:00 +00:00
|
|
|
|
"*leaf_size*: maximal byte length of leaf (0 to ``2**32-1``, 0 if unlimited "
|
|
|
|
|
"or in sequential mode)."
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgstr ""
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"*leaf_size* : taille maximale en octets d'une feuille (0 à ``2**32-1``, 0 si "
|
2018-11-30 17:31:31 +00:00
|
|
|
|
"illimité ou en mode séquentiel)."
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:461
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid ""
|
2021-10-22 12:56:00 +00:00
|
|
|
|
"*node_offset*: node offset (0 to ``2**64-1`` for BLAKE2b, 0 to ``2**48-1`` "
|
|
|
|
|
"for BLAKE2s, 0 for the first, leftmost, leaf, or in sequential mode)."
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgstr ""
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"*node_offset* : décalage du nœud (0 à ``2**64-1`` pour BLAKE2b, 0 à "
|
|
|
|
|
"``2**48-1`` pour BLAKE2s, 0 pour la première feuille la plus à gauche, ou en "
|
|
|
|
|
"mode séquentiel)."
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:464
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"*node_depth*: node depth (0 to 255, 0 for leaves, or in sequential mode)."
|
|
|
|
|
msgstr ""
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"*node_depth* : profondeur du nœud (0 à 255, 0 pour les feuilles, ou en mode "
|
2018-11-30 17:31:31 +00:00
|
|
|
|
"séquentiel)."
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:466
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"*inner_size*: inner digest size (0 to 64 for BLAKE2b, 0 to 32 for BLAKE2s, 0 "
|
|
|
|
|
"in sequential mode)."
|
|
|
|
|
msgstr ""
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"*inner_size* : taille de l'empreinte interne (0 à 64 pour BLAKE2b, 0 à 32 "
|
|
|
|
|
"pour BLAKE2s, 0 en mode séquentiel)."
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:469
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"*last_node*: boolean indicating whether the processed node is the last one "
|
2023-01-15 21:42:07 +00:00
|
|
|
|
"(``False`` for sequential mode)."
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgstr ""
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"*last_node* : booléen indiquant si le nœud traité est le dernier (``False`` "
|
2018-11-30 17:31:31 +00:00
|
|
|
|
"pour le mode séquentiel)."
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2021-12-31 10:41:52 +00:00
|
|
|
|
#: library/hashlib.rst:None
|
|
|
|
|
msgid "Explanation of tree mode parameters."
|
2023-03-23 11:08:08 +00:00
|
|
|
|
msgstr "Explication des paramètres du mode arbre."
|
2021-12-31 10:41:52 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:476
|
|
|
|
|
#, fuzzy
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid ""
|
2023-07-23 12:39:39 +00:00
|
|
|
|
"See section 2.10 in `BLAKE2 specification <https://www.blake2.net/"
|
2017-04-02 20:14:06 +00:00
|
|
|
|
"blake2_20130129.pdf>`_ for comprehensive review of tree hashing."
|
|
|
|
|
msgstr ""
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"Voir la section 2.10 dans `BLAKE2 specification <https://blake2.net/"
|
|
|
|
|
"blake2_20130129.pdf>`_ pour une approche globale du hachage en mode arbre."
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:482
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid "Constants"
|
2017-04-03 07:23:36 +00:00
|
|
|
|
msgstr "Constantes"
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:487
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid "Salt length (maximum length accepted by constructors)."
|
2018-11-30 17:31:31 +00:00
|
|
|
|
msgstr "Longueur du sel (longueur maximale acceptée par les constructeurs)."
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:493
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"Personalization string length (maximum length accepted by constructors)."
|
|
|
|
|
msgstr ""
|
2018-11-30 17:31:31 +00:00
|
|
|
|
"Longueur de la chaîne de personnalisation (longueur maximale acceptée par "
|
|
|
|
|
"les constructeurs)."
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:499
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid "Maximum key size."
|
2018-11-30 17:31:31 +00:00
|
|
|
|
msgstr "Taille maximale de clé."
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:505
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid "Maximum digest size that the hash function can output."
|
2018-11-30 17:31:31 +00:00
|
|
|
|
msgstr "Taille maximale du message que peut fournir la fonction de hachage."
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:509
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid "Examples"
|
2017-04-03 07:23:36 +00:00
|
|
|
|
msgstr "Exemples"
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:512
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid "Simple hashing"
|
2018-11-30 17:31:31 +00:00
|
|
|
|
msgstr "Hachage simple"
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:514
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"To calculate hash of some data, you should first construct a hash object by "
|
|
|
|
|
"calling the appropriate constructor function (:func:`blake2b` or :func:"
|
|
|
|
|
"`blake2s`), then update it with the data by calling :meth:`update` on the "
|
|
|
|
|
"object, and, finally, get the digest out of the object by calling :meth:"
|
|
|
|
|
"`digest` (or :meth:`hexdigest` for hex-encoded string)."
|
|
|
|
|
msgstr ""
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"Pour calculer l'empreinte (ou *hash*) d'une quantité de données, vous devez "
|
|
|
|
|
"d'abord construire un objet de calcul d'empreinte en appelant la fonction "
|
|
|
|
|
"constructeur appropriée (:func:`blake2b` or :func:`blake2s`), ensuite le "
|
|
|
|
|
"mettre à jour avec les données en appelant la méthode :meth:`update` sur "
|
|
|
|
|
"l'objet, et, pour finir, récupérer l'empreinte du message en appelant la "
|
|
|
|
|
"méthode :meth:`digest` (ou :meth:`hexdigest` pour les chaînes hexadécimales)."
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:527
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"As a shortcut, you can pass the first chunk of data to update directly to "
|
2018-08-13 13:12:45 +00:00
|
|
|
|
"the constructor as the positional argument:"
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgstr ""
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"En plus court, vous pouvez passer directement au constructeur, comme "
|
|
|
|
|
"argument positionnel, le premier morceau du message pour le mettre "
|
2023-04-14 11:16:50 +00:00
|
|
|
|
"directement à jour :"
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:534
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"You can call :meth:`hash.update` as many times as you need to iteratively "
|
|
|
|
|
"update the hash:"
|
|
|
|
|
msgstr ""
|
2018-11-30 17:31:31 +00:00
|
|
|
|
"Vous pouvez appeler la méthode :meth:`hash.update` autant de fois que "
|
2023-04-14 11:16:50 +00:00
|
|
|
|
"nécessaire pour mettre à jour l'empreinte de manière itérative :"
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:547
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid "Using different digest sizes"
|
2023-03-23 11:08:08 +00:00
|
|
|
|
msgstr "Production de tailles d'empreintes différentes"
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:549
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"BLAKE2 has configurable size of digests up to 64 bytes for BLAKE2b and up to "
|
|
|
|
|
"32 bytes for BLAKE2s. For example, to replace SHA-1 with BLAKE2b without "
|
|
|
|
|
"changing the size of output, we can tell BLAKE2b to produce 20-byte digests:"
|
|
|
|
|
msgstr ""
|
2018-11-30 17:31:31 +00:00
|
|
|
|
"BLAKE2 permet de configurer la taille des empreintes jusqu'à 64 octets pour "
|
|
|
|
|
"BLAKE2b et jusqu'à 32 octets pour BLAKE2s. Par exemple, pour remplacer SHA-1 "
|
|
|
|
|
"par BLAKE2b sans changer la taille de la sortie, nous pouvons dire à BLAKE2b "
|
2023-04-14 11:16:50 +00:00
|
|
|
|
"de produire une empreinte de 20 octets :"
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:563
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"Hash objects with different digest sizes have completely different outputs "
|
|
|
|
|
"(shorter hashes are *not* prefixes of longer hashes); BLAKE2b and BLAKE2s "
|
|
|
|
|
"produce different outputs even if the output length is the same:"
|
|
|
|
|
msgstr ""
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"Les objets de calcul d'empreinte initialisés avec des tailles d'empreintes "
|
|
|
|
|
"différentes ont des sorties complètement différentes (les condensats courts "
|
|
|
|
|
"*ne sont pas* des préfixes de condensats plus longs) ; BLAKE2b et BLAKE2s "
|
|
|
|
|
"produisent des sorties différentes même si les longueurs de sortie sont les "
|
2023-04-14 11:16:50 +00:00
|
|
|
|
"mêmes :"
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:579
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid "Keyed hashing"
|
2023-03-23 11:08:08 +00:00
|
|
|
|
msgstr "Hachage avec clé – Code d'authentification de message"
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:581
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"Keyed hashing can be used for authentication as a faster and simpler "
|
2018-06-28 13:32:56 +00:00
|
|
|
|
"replacement for `Hash-based message authentication code <https://en."
|
2021-10-22 12:56:00 +00:00
|
|
|
|
"wikipedia.org/wiki/HMAC>`_ (HMAC). BLAKE2 can be securely used in prefix-MAC "
|
|
|
|
|
"mode thanks to the indifferentiability property inherited from BLAKE."
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgstr ""
|
2019-03-26 16:51:09 +00:00
|
|
|
|
"Le hachage avec clé (*keyed hashing* en anglais) est une alternative plus "
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"simple et plus rapide à un `code d’authentification de message de hachage à "
|
|
|
|
|
"clé <https://fr.wikipedia.org/wiki/Keyed-hash_message_authentication_code>`_ "
|
|
|
|
|
"(HMAC). BLAKE2 peut être utilisé de manière sécurisée dans le mode préfixe "
|
|
|
|
|
"MAC grâce à la propriété d'indifférentiabilité héritée de BLAKE."
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:587
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"This example shows how to get a (hex-encoded) 128-bit authentication code "
|
|
|
|
|
"for message ``b'message data'`` with key ``b'pseudorandom key'``::"
|
|
|
|
|
msgstr ""
|
2018-11-30 17:31:31 +00:00
|
|
|
|
"Cet exemple montre comment obtenir un code d'authentification de message de "
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"128 bits (en hexadécimal) pour un message ``b'message data'`` avec la clé "
|
2019-06-10 08:48:16 +00:00
|
|
|
|
"``b'pseudorandom key'`` ::"
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:597
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"As a practical example, a web application can symmetrically sign cookies "
|
|
|
|
|
"sent to users and later verify them to make sure they weren't tampered with::"
|
|
|
|
|
msgstr ""
|
2018-11-30 17:31:31 +00:00
|
|
|
|
"Comme exemple pratique, une application web peut chiffrer symétriquement les "
|
|
|
|
|
"*cookies* envoyés aux utilisateurs et les vérifier plus tard pour être "
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"certaine qu'ils n'ont pas été altérés ::"
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:626
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"Even though there's a native keyed hashing mode, BLAKE2 can, of course, be "
|
|
|
|
|
"used in HMAC construction with :mod:`hmac` module::"
|
|
|
|
|
msgstr ""
|
2018-11-30 17:31:31 +00:00
|
|
|
|
"Même s'il possède en natif la création de code d'authentification de message "
|
|
|
|
|
"(MAC), BLAKE2 peut, bien sûr, être utilisé pour construire un HMAC en "
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"combinaison avec le module :mod:`hmac` ::"
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:637
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid "Randomized hashing"
|
2018-11-30 17:31:31 +00:00
|
|
|
|
msgstr "Hachage randomisé"
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:639
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"By setting *salt* parameter users can introduce randomization to the hash "
|
|
|
|
|
"function. Randomized hashing is useful for protecting against collision "
|
|
|
|
|
"attacks on the hash function used in digital signatures."
|
|
|
|
|
msgstr ""
|
2018-11-30 17:31:31 +00:00
|
|
|
|
"En définissant le paramètre *salt* les utilisateurs peuvent introduire de "
|
|
|
|
|
"l'aléatoire dans la fonction de hachage. Le hachage randomisé est utile pour "
|
|
|
|
|
"se protéger des attaques par collisions sur les fonctions de hachage "
|
|
|
|
|
"utilisées dans les signatures numériques."
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:643
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"Randomized hashing is designed for situations where one party, the message "
|
|
|
|
|
"preparer, generates all or part of a message to be signed by a second party, "
|
|
|
|
|
"the message signer. If the message preparer is able to find cryptographic "
|
|
|
|
|
"hash function collisions (i.e., two messages producing the same hash value), "
|
2018-06-28 13:32:56 +00:00
|
|
|
|
"then they might prepare meaningful versions of the message that would "
|
|
|
|
|
"produce the same hash value and digital signature, but with different "
|
|
|
|
|
"results (e.g., transferring $1,000,000 to an account, rather than $10). "
|
|
|
|
|
"Cryptographic hash functions have been designed with collision resistance as "
|
|
|
|
|
"a major goal, but the current concentration on attacking cryptographic hash "
|
|
|
|
|
"functions may result in a given cryptographic hash function providing less "
|
|
|
|
|
"collision resistance than expected. Randomized hashing offers the signer "
|
|
|
|
|
"additional protection by reducing the likelihood that a preparer can "
|
|
|
|
|
"generate two or more messages that ultimately yield the same hash value "
|
|
|
|
|
"during the digital signature generation process --- even if it is practical "
|
|
|
|
|
"to find collisions for the hash function. However, the use of randomized "
|
|
|
|
|
"hashing may reduce the amount of security provided by a digital signature "
|
|
|
|
|
"when all portions of the message are prepared by the signer."
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgstr ""
|
2018-11-30 17:31:31 +00:00
|
|
|
|
"Le hachage aléatoire est conçu pour les situations où une partie, le "
|
|
|
|
|
"préparateur du message, génère tout ou partie d'un message à signer par une "
|
|
|
|
|
"seconde partie, le signataire du message. Si le préparateur du message est "
|
|
|
|
|
"capable de trouver des collisions sur la fonction cryptographique de hachage "
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"(c.-à-d. deux messages produisant la même valeur une fois hachés), alors il "
|
|
|
|
|
"peut préparer plusieurs versions du message, ayant un sens, qui produiront "
|
|
|
|
|
"les mêmes empreintes et même signature mais avec des résultats différents "
|
|
|
|
|
"(par exemple transférer 1 000 000 $ sur un compte plutôt que 10 $). Les "
|
|
|
|
|
"fonctions cryptographiques de hachage ont été conçues avec comme but premier "
|
|
|
|
|
"de résister aux collisions, mais la concentration actuelle d'attaques sur "
|
|
|
|
|
"les fonctions de hachage peut avoir pour conséquence qu'une fonction de "
|
|
|
|
|
"hachage donnée soit moins résistante qu'attendu. Le hachage aléatoire offre "
|
|
|
|
|
"au signataire une protection supplémentaire en réduisant la probabilité que "
|
|
|
|
|
"le préparateur puisse générer deux messages ou plus qui renverront la même "
|
|
|
|
|
"empreinte lors du processus de génération de la signature — même s'il existe "
|
|
|
|
|
"un moyen pratique de trouver des collisions sur la fonction de hachage. "
|
|
|
|
|
"Toutefois, l'utilisation du hachage aléatoire peut réduire le niveau de "
|
|
|
|
|
"sécurité fourni par une signature numérique si tous les morceaux du message "
|
|
|
|
|
"sont préparés par le signataire."
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:662
|
|
|
|
|
#, fuzzy
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid ""
|
2018-06-28 13:32:56 +00:00
|
|
|
|
"(`NIST SP-800-106 \"Randomized Hashing for Digital Signatures\" <https://"
|
2023-07-23 12:39:39 +00:00
|
|
|
|
"csrc.nist.gov/publications/detail/sp/800-106/archive/2009-02-25>`_)"
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgstr ""
|
2019-03-26 16:38:57 +00:00
|
|
|
|
"(`NIST SP-800-106 \"Randomized Hashing for Digital Signatures\" <https://"
|
|
|
|
|
"csrc.nist.gov/publications/detail/sp/800-106/final>`_, article en anglais)"
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:665
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"In BLAKE2 the salt is processed as a one-time input to the hash function "
|
|
|
|
|
"during initialization, rather than as an input to each compression function."
|
|
|
|
|
msgstr ""
|
2018-11-30 17:31:31 +00:00
|
|
|
|
"Dans BLAKE2, le sel est passé une seule fois lors de l'initialisation de la "
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"fonction de hachage, plutôt qu'à chaque appel de la fonction de hachage."
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:670
|
|
|
|
|
#, fuzzy
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"*Salted hashing* (or just hashing) with BLAKE2 or any other general-purpose "
|
|
|
|
|
"cryptographic hash function, such as SHA-256, is not suitable for hashing "
|
2023-07-23 12:39:39 +00:00
|
|
|
|
"passwords. See `BLAKE2 FAQ <https://www.blake2.net/#qa>`_ for more "
|
|
|
|
|
"information."
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgstr ""
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"*Salted hashing* (ou un hachage simple) avec BLAKE2 ou toute autre fonction "
|
|
|
|
|
"de hachage générique, comme SHA-256, ne convient pas pour obscurcir des mots "
|
|
|
|
|
"de passe. Voir `la FAQ BLAKE2 <https://blake2.net/#qa>`_ (page en anglais) "
|
|
|
|
|
"pour plus d'informations."
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:693
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid "Personalization"
|
2018-11-30 17:31:31 +00:00
|
|
|
|
msgstr "Personnalisation"
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:695
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"Sometimes it is useful to force hash function to produce different digests "
|
|
|
|
|
"for the same input for different purposes. Quoting the authors of the Skein "
|
|
|
|
|
"hash function:"
|
|
|
|
|
msgstr ""
|
2018-11-30 17:31:31 +00:00
|
|
|
|
"Parfois il est utile de forcer une fonction de hachage à produire "
|
|
|
|
|
"différentes empreintes de message d'une même entrée pour différentes "
|
2023-04-14 11:16:50 +00:00
|
|
|
|
"utilisations. Pour citer les auteurs de la fonction de hachage Skein :"
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:699
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"We recommend that all application designers seriously consider doing this; "
|
|
|
|
|
"we have seen many protocols where a hash that is computed in one part of the "
|
|
|
|
|
"protocol can be used in an entirely different part because two hash "
|
|
|
|
|
"computations were done on similar or related data, and the attacker can "
|
|
|
|
|
"force the application to make the hash inputs the same. Personalizing each "
|
|
|
|
|
"hash function used in the protocol summarily stops this type of attack."
|
|
|
|
|
msgstr ""
|
2018-11-30 17:31:31 +00:00
|
|
|
|
"Nous recommandons que tous les développeurs d'application considèrent "
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"sérieusement de faire cela ; nous avons vu de nombreux protocoles où une "
|
|
|
|
|
"empreinte était calculée à un endroit du protocole pour être utilisée à un "
|
|
|
|
|
"autre endroit car deux calculs d'empreintes étaient réalisés sur des données "
|
2018-11-30 17:31:31 +00:00
|
|
|
|
"similaires ou liées, et qu'un attaquant peut forcer une application à "
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"prendre en entrée la même empreinte. Personnaliser chaque fonction de "
|
|
|
|
|
"hachage utilisée dans le protocole stoppe immédiatement ce genre d'attaque."
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:706
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid ""
|
2023-01-15 21:42:07 +00:00
|
|
|
|
"(`The Skein Hash Function Family <https://www.schneier.com/wp-content/"
|
|
|
|
|
"uploads/2016/02/skein.pdf>`_, p. 21)"
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgstr ""
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"(`The Skein Hash Function Family <https://www.schneier.com/wp-content/"
|
|
|
|
|
"uploads/2016/02/skein.pdf>`_, p. 21, article en anglais)"
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:710
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid "BLAKE2 can be personalized by passing bytes to the *person* argument::"
|
|
|
|
|
msgstr ""
|
2019-06-10 08:48:16 +00:00
|
|
|
|
"BLAKE2 peut être personnalisé en passant des *bytes* à l'argument *person* ::"
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:724
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"Personalization together with the keyed mode can also be used to derive "
|
|
|
|
|
"different keys from a single one."
|
|
|
|
|
msgstr ""
|
2019-03-26 16:38:57 +00:00
|
|
|
|
"La personnalisation et le *keyed mode* peuvent être utilisés ensemble pour "
|
|
|
|
|
"dériver différentes clés à partir d'une seule."
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:738
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid "Tree mode"
|
2018-11-30 17:31:31 +00:00
|
|
|
|
msgstr "Mode Arbre"
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:740
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid "Here's an example of hashing a minimal tree with two leaf nodes::"
|
|
|
|
|
msgstr ""
|
2018-11-30 17:31:31 +00:00
|
|
|
|
"L'exemple ci-dessous présente comment hacher un arbre minimal avec deux "
|
2019-06-10 08:48:16 +00:00
|
|
|
|
"nœuds terminaux ::"
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:746
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"This example uses 64-byte internal digests, and returns the 32-byte final "
|
|
|
|
|
"digest::"
|
|
|
|
|
msgstr ""
|
2018-11-30 17:31:31 +00:00
|
|
|
|
"Cet exemple utilise en interne des empreintes de 64 octets, et produit "
|
2019-06-10 08:48:16 +00:00
|
|
|
|
"finalement des empreintes 32 octets ::"
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:776
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid "Credits"
|
2018-11-30 17:31:31 +00:00
|
|
|
|
msgstr "Crédits"
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:778
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"BLAKE2_ was designed by *Jean-Philippe Aumasson*, *Samuel Neves*, *Zooko "
|
|
|
|
|
"Wilcox-O'Hearn*, and *Christian Winnerlein* based on SHA-3_ finalist BLAKE_ "
|
|
|
|
|
"created by *Jean-Philippe Aumasson*, *Luca Henzen*, *Willi Meier*, and "
|
|
|
|
|
"*Raphael C.-W. Phan*."
|
|
|
|
|
msgstr ""
|
2018-11-30 17:31:31 +00:00
|
|
|
|
"BLAKE2_ a été conçu par *Jean-Philippe Aumasson*, *Samuel Neves*, *Zooko "
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"Wilcox-O'Hearn*, et *Christian Winnerlein*. Il est basé la version BLAKE_ "
|
|
|
|
|
"qui a participé à la finale de la compétition du NIST SHA-3_ créée par *Jean-"
|
|
|
|
|
"Philippe Aumasson*, *Luca Henzen*, *Willi Meier*, et *Raphael C.-W. Phan*."
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:783
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"It uses core algorithm from ChaCha_ cipher designed by *Daniel J. "
|
|
|
|
|
"Bernstein*."
|
|
|
|
|
msgstr ""
|
2018-11-30 17:31:31 +00:00
|
|
|
|
"Il utilise le cœur de l'algorithme de chiffrement de ChaCha_ conçu par "
|
|
|
|
|
"*Daniel J. Bernstein*."
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:785
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"The stdlib implementation is based on pyblake2_ module. It was written by "
|
|
|
|
|
"*Dmitry Chestnykh* based on C implementation written by *Samuel Neves*. The "
|
|
|
|
|
"documentation was copied from pyblake2_ and written by *Dmitry Chestnykh*."
|
|
|
|
|
msgstr ""
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"L'implémentation dans la bibliothèque standard est basée sur le module "
|
|
|
|
|
"pyblake2_. Elle a été écrite par *Dmitry Chestnykh* et est basée sur "
|
2018-11-30 17:31:31 +00:00
|
|
|
|
"l'implémentation C écrite par *Samuel Neves*. La documentation a été copiée "
|
|
|
|
|
"depuis pyblake2_ et écrite par *Dmitry Chestnykh*."
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:789
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid "The C code was partly rewritten for Python by *Christian Heimes*."
|
|
|
|
|
msgstr ""
|
2018-11-30 17:31:31 +00:00
|
|
|
|
"Le code C a été partiellement réécrit pour Python par *Christian Heimes*."
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:791
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"The following public domain dedication applies for both C hash function "
|
|
|
|
|
"implementation, extension code, and this documentation:"
|
|
|
|
|
msgstr ""
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"Le transfert dans le domaine public s'applique pour l'implémentation C de la "
|
2023-04-14 11:16:50 +00:00
|
|
|
|
"fonction de hachage, ses extensions et cette documentation :"
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:794
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"To the extent possible under law, the author(s) have dedicated all copyright "
|
|
|
|
|
"and related and neighboring rights to this software to the public domain "
|
|
|
|
|
"worldwide. This software is distributed without any warranty."
|
2019-03-26 16:38:57 +00:00
|
|
|
|
msgstr ""
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"Tout en restant dans les limites de la loi, le(s) auteur(s) a (ont) donné "
|
2019-03-26 16:38:57 +00:00
|
|
|
|
"tous les droits d’auteur et droits connexes et voisins de ce logiciel au "
|
|
|
|
|
"domaine public dans le monde entier. Ce logiciel est distribué sans aucune "
|
|
|
|
|
"garantie."
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:798
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"You should have received a copy of the CC0 Public Domain Dedication along "
|
2018-06-28 13:32:56 +00:00
|
|
|
|
"with this software. If not, see https://creativecommons.org/publicdomain/"
|
2017-04-02 20:14:06 +00:00
|
|
|
|
"zero/1.0/."
|
|
|
|
|
msgstr ""
|
2018-11-30 17:31:31 +00:00
|
|
|
|
"Vous devriez recevoir avec ce logiciel une copie de la licence *CC0 Public "
|
|
|
|
|
"Domain Dedication*. Sinon, voir https://creativecommons.org/publicdomain/"
|
|
|
|
|
"zero/1.0/."
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:802
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"The following people have helped with development or contributed their "
|
|
|
|
|
"changes to the project and the public domain according to the Creative "
|
|
|
|
|
"Commons Public Domain Dedication 1.0 Universal:"
|
|
|
|
|
msgstr ""
|
2018-11-30 17:31:31 +00:00
|
|
|
|
"Les personnes suivantes ont aidé au développement ou contribué aux "
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"modifications du projet et au domaine public selon la licence Creative "
|
2023-04-14 11:16:50 +00:00
|
|
|
|
"Commons Public Domain Dedication 1.0 Universal :"
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:806
|
2017-04-02 20:14:06 +00:00
|
|
|
|
msgid "*Alexandr Sokolovskiy*"
|
2019-03-26 16:38:57 +00:00
|
|
|
|
msgstr "*Alexandr Sokolovskiy*"
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:826
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgid "Module :mod:`hmac`"
|
2019-03-26 16:38:57 +00:00
|
|
|
|
msgstr "Module :mod:`hmac`"
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:826
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgid "A module to generate message authentication codes using hashes."
|
|
|
|
|
msgstr ""
|
2018-11-30 17:31:31 +00:00
|
|
|
|
"Un module pour générer des codes d'authentification utilisant des *hash*."
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:829
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgid "Module :mod:`base64`"
|
2019-03-09 22:39:59 +00:00
|
|
|
|
msgstr "Module :mod:`base64`"
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:829
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgid "Another way to encode binary hashes for non-binary environments."
|
|
|
|
|
msgstr ""
|
2018-11-30 17:31:31 +00:00
|
|
|
|
"Un autre moyen d'encoder des *hash* binaires dans des environnements non "
|
|
|
|
|
"binaires."
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:832
|
|
|
|
|
#, fuzzy
|
|
|
|
|
msgid "https://nvlpubs.nist.gov/nistpubs/fips/nist.fips.180-4.pdf"
|
|
|
|
|
msgstr ""
|
|
|
|
|
"https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-132.pdf"
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:832
|
|
|
|
|
#, fuzzy
|
|
|
|
|
msgid "The FIPS 180-4 publication on Secure Hash Algorithms."
|
|
|
|
|
msgstr "La publication FIPS 180-2 sur les algorithmes de hachage sécurisés."
|
2017-04-02 20:14:06 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:835
|
|
|
|
|
msgid "https://csrc.nist.gov/publications/detail/fips/202/final"
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgstr ""
|
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:835
|
|
|
|
|
#, fuzzy
|
|
|
|
|
msgid "The FIPS 202 publication on the SHA-3 Standard."
|
2019-03-26 16:38:57 +00:00
|
|
|
|
msgstr "La publication FIPS 180-2 sur les algorithmes de hachage sécurisés."
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:838
|
|
|
|
|
#, fuzzy
|
|
|
|
|
msgid "https://www.blake2.net/"
|
|
|
|
|
msgstr "https://blake2.net"
|
|
|
|
|
|
|
|
|
|
#: library/hashlib.rst:838
|
|
|
|
|
msgid "Official BLAKE2 website."
|
|
|
|
|
msgstr "Site officiel de BLAKE2."
|
|
|
|
|
|
|
|
|
|
#: library/hashlib.rst:842
|
|
|
|
|
#, fuzzy
|
|
|
|
|
msgid "https://en.wikipedia.org/wiki/Cryptographic_hash_function"
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgstr ""
|
2019-03-26 16:38:57 +00:00
|
|
|
|
"https://en.wikipedia.org/wiki/"
|
|
|
|
|
"Cryptographic_hash_function#Cryptographic_hash_algorithms"
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:841
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"Wikipedia article with information on which algorithms have known issues and "
|
|
|
|
|
"what that means regarding their use."
|
|
|
|
|
msgstr ""
|
2018-11-30 17:31:31 +00:00
|
|
|
|
"Article Wikipedia contenant les informations relatives aux algorithmes ayant "
|
|
|
|
|
"des problèmes et leur interprétation au regard de leur utilisation."
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:845
|
2021-09-24 08:20:01 +00:00
|
|
|
|
msgid "https://www.ietf.org/rfc/rfc8018.txt"
|
2023-03-23 11:08:08 +00:00
|
|
|
|
msgstr "https://www.ietf.org/rfc/rfc8018.txt"
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:845
|
2021-09-24 08:20:01 +00:00
|
|
|
|
msgid "PKCS #5: Password-Based Cryptography Specification Version 2.1"
|
2023-03-23 11:08:08 +00:00
|
|
|
|
msgstr "PKCS #5 : Password-Based Cryptography Specification Version 2.1"
|
2021-09-24 08:20:01 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:847
|
2022-03-23 17:40:12 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-132.pdf"
|
|
|
|
|
msgstr ""
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-132.pdf"
|
2022-03-23 17:40:12 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:848
|
2022-03-23 17:40:12 +00:00
|
|
|
|
msgid "NIST Recommendation for Password-Based Key Derivation."
|
|
|
|
|
msgstr ""
|
2023-03-23 11:08:08 +00:00
|
|
|
|
"Recommandations du NIST pour la dérivation de clé à partir de mot de passe "
|
|
|
|
|
"(ressource en anglais)."
|
2022-03-23 17:40:12 +00:00
|
|
|
|
|
2023-07-23 12:39:39 +00:00
|
|
|
|
#: library/hashlib.rst:12
|
|
|
|
|
msgid "message digest, MD5"
|
|
|
|
|
msgstr ""
|
|
|
|
|
|
|
|
|
|
#: library/hashlib.rst:12
|
|
|
|
|
msgid ""
|
|
|
|
|
"secure hash algorithm, SHA1, SHA2, SHA224, SHA256, SHA384, SHA512, SHA3, "
|
|
|
|
|
"Shake, Blake2"
|
|
|
|
|
msgstr ""
|
|
|
|
|
|
|
|
|
|
#: library/hashlib.rst:55
|
|
|
|
|
msgid "OpenSSL"
|
|
|
|
|
msgstr ""
|
|
|
|
|
|
|
|
|
|
#: library/hashlib.rst:55
|
|
|
|
|
msgid "(use in module hashlib)"
|
|
|
|
|
msgstr ""
|
|
|
|
|
|
|
|
|
|
#: library/hashlib.rst:378
|
|
|
|
|
msgid "blake2b, blake2s"
|
|
|
|
|
msgstr ""
|
|
|
|
|
|
|
|
|
|
# suit un :
|
|
|
|
|
#~ msgid ""
|
|
|
|
|
#~ "Feeding string objects into :meth:`update` is not supported, as hashes "
|
|
|
|
|
#~ "work on bytes, not on characters."
|
|
|
|
|
#~ msgstr ""
|
|
|
|
|
#~ "fournir des objets chaînes de caractères à la méthode :meth:`update` "
|
|
|
|
|
#~ "n'est pas implémenté, comme les fonctions de hachages travaillent sur des "
|
|
|
|
|
#~ "*bytes* et pas sur des caractères."
|
|
|
|
|
|
|
|
|
|
#~ msgid ""
|
|
|
|
|
#~ "https://csrc.nist.gov/csrc/media/publications/fips/180/2/"
|
|
|
|
|
#~ "archive/2002-08-01/documents/fips180-2.pdf"
|
|
|
|
|
#~ msgstr ""
|
|
|
|
|
#~ "https://csrc.nist.gov/csrc/media/publications/fips/180/2/"
|
|
|
|
|
#~ "archive/2002-08-01/documents/fips180-2.pdf"
|
|
|
|
|
|
2022-03-23 17:40:12 +00:00
|
|
|
|
#~ msgid ""
|
|
|
|
|
#~ "The number of *iterations* should be chosen based on the hash algorithm "
|
|
|
|
|
#~ "and computing power. As of 2013, at least 100,000 iterations of SHA-256 "
|
|
|
|
|
#~ "are suggested."
|
|
|
|
|
#~ msgstr ""
|
|
|
|
|
#~ "Le nombre d'*iterations* doit être choisi sur la base de l'algorithme de "
|
|
|
|
|
#~ "hachage et de la puissance de calcul. En 2013, au moins 100000 itérations "
|
|
|
|
|
#~ "de SHA-256 sont recommandées."
|
|
|
|
|
|
2021-09-24 08:20:01 +00:00
|
|
|
|
#~ msgid ":ref:`Availability <availability>`: OpenSSL 1.1+."
|
|
|
|
|
#~ msgstr ":ref:`Disponibilité <availability>` : OpenSSL 1.1+."
|