@@ -30,7 +30,7 @@ msgstr ""
30
30
31
31
#: ../../library/hashlib.rst:2
32
32
msgid ":mod:`!hashlib` --- Secure hashes and message digests"
33
- msgstr ""
33
+ msgstr ":mod:`!hashlib` --- resumos de mensagens e hashes seguros "
34
34
35
35
#: ../../library/hashlib.rst:10
36
36
msgid "**Source code:** :source:`Lib/hashlib.py`"
@@ -161,7 +161,7 @@ msgstr ""
161
161
162
162
#: ../../library/hashlib.rst:89
163
163
msgid "Hashlib now uses SHA3 and SHAKE from OpenSSL if it provides it."
164
- msgstr "OHashlib agora usa SHA3 e SHAKE do OpenSSL, se ele os fornecer."
164
+ msgstr "Ohashlib agora usa SHA3 e SHAKE do OpenSSL, se ele os fornecer."
165
165
166
166
#: ../../library/hashlib.rst:92
167
167
msgid ""
@@ -247,7 +247,7 @@ msgstr "Atributos"
247
247
248
248
#: ../../library/hashlib.rst:152
249
249
msgid "Hashlib provides the following constant module attributes:"
250
- msgstr "OHashlib fornece os seguintes atributos de módulo constantes:"
250
+ msgstr "Ohashlib fornece os seguintes atributos de módulo constantes:"
251
251
252
252
#: ../../library/hashlib.rst:156
253
253
msgid ""
@@ -293,7 +293,7 @@ msgstr "O tamanho do hash resultante em bytes."
293
293
294
294
#: ../../library/hashlib.rst:185
295
295
msgid "The internal block size of the hash algorithm in bytes."
296
- msgstr "O tamanho do blocointerna do algoritmo de hash em bytes."
296
+ msgstr "O tamanho do blocointerno do algoritmo de hash em bytes."
297
297
298
298
#: ../../library/hashlib.rst:187
299
299
msgid "A hash object has the following attributes:"
@@ -469,7 +469,7 @@ msgstr ""
469
469
470
470
#: ../../library/hashlib.rst:311
471
471
msgid "Key derivation"
472
- msgstr ""
472
+ msgstr "Derivação de chave "
473
473
474
474
#: ../../library/hashlib.rst:313
475
475
msgid ""
@@ -479,12 +479,19 @@ msgid ""
479
479
"be tunable, slow, and include a `salt <https://en.wikipedia.org/wiki/"
480
480
"Salt_%28cryptography%29>`_."
481
481
msgstr ""
482
+ "Algoritmos de alongamento de chave e derivação de chave são projetados para "
483
+ "criar hashes de senhas seguros. Algoritmos ingênuos como ``sha1(password)`` "
484
+ "não são resistentes a ataques de força bruta. Uma boa função de hashing de "
485
+ "senhas deve ser ajustável, lenta e incluir um `salt <https://pt.wikipedia."
486
+ "org/wiki/Sal_(criptografia)>`_."
482
487
483
488
#: ../../library/hashlib.rst:321
484
489
msgid ""
485
490
"The function provides PKCS#5 password-based key derivation function 2. It "
486
491
"uses HMAC as pseudorandom function."
487
492
msgstr ""
493
+ "A função fornece a função 2 de derivação de chave baseada em senha PKCS#5. "
494
+ "Ela usa HMAC como função pseudoaleatória."
488
495
489
496
#: ../../library/hashlib.rst:324
490
497
msgid ""
@@ -494,6 +501,11 @@ msgid ""
494
501
"sensible length (e.g. 1024). *salt* should be about 16 or more bytes from a "
495
502
"proper source, e.g. :func:`os.urandom`."
496
503
msgstr ""
504
+ "A string *hash_name* é o nome desejado do algoritmo de resumo de hash para "
505
+ "HMAC, por exemplo, 'sha1' ou 'sha256'. *password* e *salt* são interpretados "
506
+ "como buffers de bytes. Aplicações e bibliotecas devem limitar *password* a "
507
+ "um comprimento razoável (por exemplo, 1024). *salt* deve ter cerca de 16 "
508
+ "bytes ou mais de uma fonte adequada, por exemplo, :func:`os.urandom`."
497
509
498
510
#: ../../library/hashlib.rst:330
499
511
msgid ""
@@ -503,29 +515,42 @@ msgid ""
503
515
"your application, read *Appendix A.2.2* of NIST-SP-800-132_. The answers on "
504
516
"the `stackexchange pbkdf2 iterations question`_ explain in detail."
505
517
msgstr ""
518
+ "O número de *iterations* deve ser escolhido com base no algoritmo de hash e "
519
+ "no poder computacional. A partir de 2022, centenas de milhares de iterações "
520
+ "do SHA-256 são sugeridas. Para entender por que e como escolher o que é "
521
+ "melhor para sua aplicação, leia o *Appendix A.2.2* do NIST-SP-800-132_. As "
522
+ "respostas à `pergunta sobre iterações de pbkdf2 no StackExchange`_ explicam "
523
+ "em detalhes."
506
524
507
525
#: ../../library/hashlib.rst:336
508
526
msgid ""
509
527
"*dklen* is the length of the derived key in bytes. If *dklen* is ``None`` "
510
528
"then the digest size of the hash algorithm *hash_name* is used, e.g. 64 for "
511
529
"SHA-512."
512
530
msgstr ""
531
+ "*dklen* é o comprimento da chave derivada em bytes. Se *dklen* for ``None``, "
532
+ "o tamanho do resumo do algoritmo de hash *hash_name* será usado, por "
533
+ "exemplo, 64 para SHA-512."
513
534
514
535
#: ../../library/hashlib.rst:345
515
536
msgid "Function only available when Python is compiled with OpenSSL."
516
- msgstr ""
537
+ msgstr "Função disponível somente quando Python é compilado com OpenSSL. "
517
538
518
539
#: ../../library/hashlib.rst:349
519
540
msgid ""
520
541
"Function now only available when Python is built with OpenSSL. The slow pure "
521
542
"Python implementation has been removed."
522
543
msgstr ""
544
+ "Função agora disponível apenas quando o Python é criado com OpenSSL. A "
545
+ "implementação lenta do Python puro foi removida."
523
546
524
547
#: ../../library/hashlib.rst:355
525
548
msgid ""
526
549
"The function provides scrypt password-based key derivation function as "
527
550
"defined in :rfc:`7914`."
528
551
msgstr ""
552
+ "A função fornece a função de derivação de chave baseada em senha scrypt, "
553
+ "conforme definido em :rfc:`7914`."
529
554
530
555
#: ../../library/hashlib.rst:358
531
556
msgid ""
@@ -534,35 +559,48 @@ msgid ""
534
559
"length (e.g. 1024). *salt* should be about 16 or more bytes from a proper "
535
560
"source, e.g. :func:`os.urandom`."
536
561
msgstr ""
562
+ "*password* e *salt* devem ser :term:`Objetos byte ou similar <bytes-like "
563
+ "object>`. Aplicações e bibliotecas devem limitar *password* a um tamanho "
564
+ "razoável (por exemplo, 1024). *salt* deve ter cerca de 16 bytes ou mais de "
565
+ "uma fonte adequada, por exemplo, :func:`os.urandom`."
537
566
538
567
#: ../../library/hashlib.rst:363
539
568
msgid ""
540
569
"*n* is the CPU/Memory cost factor, *r* the block size, *p* parallelization "
541
570
"factor and *maxmem* limits memory (OpenSSL 1.1.0 defaults to 32 MiB). "
542
571
"*dklen* is the length of the derived key in bytes."
543
572
msgstr ""
573
+ "*n* é o fator de custo de CPU/memória, *r* o tamanho do bloco, *p* o fator "
574
+ "de paralelismo e *maxmem* limita a memória (o padrão do OpenSSL 1.1.0 é 32 "
575
+ "MiB). *dklen* é o comprimento da chave derivada em bytes."
544
576
545
577
#: ../../library/hashlib.rst:373
546
578
msgid "BLAKE2"
547
- msgstr ""
579
+ msgstr "BLAKE2 "
548
580
549
581
#: ../../library/hashlib.rst:380
550
582
msgid ""
551
583
"BLAKE2_ is a cryptographic hash function defined in :rfc:`7693` that comes "
552
584
"in two flavors:"
553
585
msgstr ""
586
+ "BLAKE2_ é uma função hash criptográfica definida em :rfc:`7693` que vem em "
587
+ "dois sabores:"
554
588
555
589
#: ../../library/hashlib.rst:383
556
590
msgid ""
557
591
"**BLAKE2b**, optimized for 64-bit platforms and produces digests of any size "
558
592
"between 1 and 64 bytes,"
559
593
msgstr ""
594
+ "**BLAKE2b**, otimizado para plataformas de 64 bits e produz resumos de "
595
+ "qualquer tamanho entre 1 e 64 bytes,"
560
596
561
597
#: ../../library/hashlib.rst:386
562
598
msgid ""
563
599
"**BLAKE2s**, optimized for 8- to 32-bit platforms and produces digests of "
564
600
"any size between 1 and 32 bytes."
565
601
msgstr ""
602
+ "**BLAKE2s**, otimizado para plataformas de 8 a 32 bits e produz resumos de "
603
+ "qualquer tamanho entre 1 e 32 bytes."
566
604
567
605
#: ../../library/hashlib.rst:389
568
606
msgid ""