python-docs-fr/library/secrets.po

188 lines
5.8 KiB
Plaintext
Raw Normal View History

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 ""
"Project-Id-Version: Python 3.6\n"
"Report-Msgid-Bugs-To: \n"
2019-09-04 09:35:23 +00:00
"POT-Creation-Date: 2019-09-04 11:33+0200\n"
2016-10-30 09:46:26 +00:00
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\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"
#: ../Doc/library/secrets.rst:2
msgid ":mod:`secrets` --- Generate secure random numbers for managing secrets"
msgstr ""
#: ../Doc/library/secrets.rst:16
msgid "**Source code:** :source:`Lib/secrets.py`"
msgstr ""
#: ../Doc/library/secrets.rst:20
msgid ""
"The :mod:`secrets` module is used for generating cryptographically strong "
"random numbers suitable for managing data such as passwords, account "
"authentication, security tokens, and related secrets."
msgstr ""
#: ../Doc/library/secrets.rst:24
msgid ""
"In particularly, :mod:`secrets` should be used in preference to the default "
"pseudo-random number generator in the :mod:`random` module, which is "
"designed for modelling and simulation, not security or cryptography."
msgstr ""
#: ../Doc/library/secrets.rst:30
msgid ":pep:`506`"
msgstr ""
#: ../Doc/library/secrets.rst:34
msgid "Random numbers"
2017-08-10 05:17:13 +00:00
msgstr "Nombres aléatoires"
2016-10-30 09:46:26 +00:00
#: ../Doc/library/secrets.rst:36
msgid ""
"The :mod:`secrets` module provides access to the most secure source of "
"randomness that your operating system provides."
msgstr ""
#: ../Doc/library/secrets.rst:41
msgid ""
"A class for generating random numbers using the highest-quality sources "
"provided by the operating system. See :class:`random.SystemRandom` for "
"additional details."
msgstr ""
#: ../Doc/library/secrets.rst:47
msgid "Return a randomly-chosen element from a non-empty sequence."
msgstr ""
#: ../Doc/library/secrets.rst:51
msgid "Return a random int in the range [0, *n*)."
msgstr ""
#: ../Doc/library/secrets.rst:55
msgid "Return an int with *k* random bits."
msgstr ""
#: ../Doc/library/secrets.rst:59
msgid "Generating tokens"
msgstr ""
#: ../Doc/library/secrets.rst:61
msgid ""
"The :mod:`secrets` module provides functions for generating secure tokens, "
"suitable for applications such as password resets, hard-to-guess URLs, and "
"similar."
msgstr ""
#: ../Doc/library/secrets.rst:67
msgid ""
"Return a random byte string containing *nbytes* number of bytes. If *nbytes* "
"is ``None`` or not supplied, a reasonable default is used."
msgstr ""
#: ../Doc/library/secrets.rst:79
msgid ""
"Return a random text string, in hexadecimal. The string has *nbytes* random "
"bytes, each byte converted to two hex digits. If *nbytes* is ``None`` or "
"not supplied, a reasonable default is used."
msgstr ""
#: ../Doc/library/secrets.rst:90
msgid ""
"Return a random URL-safe text string, containing *nbytes* random bytes. The "
"text is Base64 encoded, so on average each byte results in approximately 1.3 "
"characters. If *nbytes* is ``None`` or not supplied, a reasonable default "
"is used."
msgstr ""
#: ../Doc/library/secrets.rst:102
msgid "How many bytes should tokens use?"
msgstr ""
#: ../Doc/library/secrets.rst:104
msgid ""
"To be secure against `brute-force attacks <https://en.wikipedia.org/wiki/"
"Brute-force_attack>`_, tokens need to have sufficient randomness. "
"Unfortunately, what is considered sufficient will necessarily increase as "
"computers get more powerful and able to make more guesses in a shorter "
"period. As of 2015, it is believed that 32 bytes (256 bits) of randomness "
"is sufficient for the typical use-case expected for the :mod:`secrets` "
"module."
msgstr ""
#: ../Doc/library/secrets.rst:112
msgid ""
"For those who want to manage their own token length, you can explicitly "
"specify how much randomness is used for tokens by giving an :class:`int` "
"argument to the various ``token_*`` functions. That argument is taken as "
"the number of bytes of randomness to use."
msgstr ""
#: ../Doc/library/secrets.rst:117
msgid ""
"Otherwise, if no argument is provided, or if the argument is ``None``, the "
"``token_*`` functions will use a reasonable default instead."
msgstr ""
#: ../Doc/library/secrets.rst:122
msgid ""
"That default is subject to change at any time, including during maintenance "
"releases."
msgstr ""
#: ../Doc/library/secrets.rst:127
msgid "Other functions"
msgstr ""
#: ../Doc/library/secrets.rst:131
msgid ""
"Return ``True`` if strings *a* and *b* are equal, otherwise ``False``, in "
2018-06-28 13:32:56 +00:00
"such a way as to reduce the risk of `timing attacks <https://codahale.com/a-"
2016-10-30 09:46:26 +00:00
"lesson-in-timing-attacks/>`_. See :func:`hmac.compare_digest` for additional "
"details."
msgstr ""
#: ../Doc/library/secrets.rst:138
msgid "Recipes and best practices"
msgstr ""
#: ../Doc/library/secrets.rst:140
msgid ""
"This section shows recipes and best practices for using :mod:`secrets` to "
"manage a basic level of security."
msgstr ""
#: ../Doc/library/secrets.rst:143
msgid "Generate an eight-character alphanumeric password:"
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/secrets.rst:155
2016-10-30 09:46:26 +00:00
msgid ""
"Applications should not `store passwords in a recoverable format <http://cwe."
"mitre.org/data/definitions/257.html>`_, whether plain text or encrypted. "
"They should be salted and hashed using a cryptographically-strong one-way "
"(irreversible) hash function."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/secrets.rst:161
2016-10-30 09:46:26 +00:00
msgid ""
"Generate a ten-character alphanumeric password with at least one lowercase "
"character, at least one uppercase character, and at least three digits:"
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/secrets.rst:178
2018-06-28 13:32:56 +00:00
msgid "Generate an `XKCD-style passphrase <https://xkcd.com/936/>`_:"
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/secrets.rst:190
2016-10-30 09:46:26 +00:00
msgid ""
"Generate a hard-to-guess temporary URL containing a security token suitable "
"for password recovery applications:"
msgstr ""