7
7
msgstr ""
8
8
"Project-Id-Version : Python 3.11\n "
9
9
"Report-Msgid-Bugs-To : \n "
10
- "POT-Creation-Date : 2023-05-09 00:15 +0000\n "
10
+ "POT-Creation-Date : 2023-07-13 00:19 +0000\n "
11
11
"PO-Revision-Date : 2018-05-23 14:42+0000\n "
12
12
"
Last-Translator :
Adrian Liaw <[email protected] >\n "
13
13
"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
@@ -26,14 +26,15 @@ msgstr ":mod:`crypt` --- 用於檢查 Unix 密碼的函式"
26
26
msgid "**Source code:** :source:`Lib/crypt.py`"
27
27
msgstr "**原始碼:**\\ :source:`Lib/crypt.py`"
28
28
29
- #: ../../library/crypt.rst:23
29
+ #: ../../library/crypt.rst:24
30
30
msgid ""
31
31
"The :mod:`crypt` module is deprecated (see :pep:`PEP 594 <594#crypt>` for "
32
32
"details and alternatives). The :mod:`hashlib` module is a potential "
33
- "replacement for certain use cases."
33
+ "replacement for certain use cases. The `passlib <https://pypi.org/project/"
34
+ "passlib/>`_ package can replace all use cases of this module."
34
35
msgstr ""
35
36
36
- #: ../../library/crypt.rst:26
37
+ #: ../../library/crypt.rst:27
37
38
msgid ""
38
39
"This module implements an interface to the :manpage:`crypt(3)` routine, "
39
40
"which is a one-way hash function based upon a modified DES algorithm; see "
@@ -42,15 +43,15 @@ msgid ""
42
43
"attempting to crack Unix passwords with a dictionary."
43
44
msgstr ""
44
45
45
- #: ../../library/crypt.rst:34
46
+ #: ../../library/crypt.rst:35
46
47
msgid ""
47
48
"Notice that the behavior of this module depends on the actual "
48
49
"implementation of the :manpage:`crypt(3)` routine in the running system. "
49
50
"Therefore, any extensions available on the current implementation will also "
50
51
"be available on this module."
51
52
msgstr ""
52
53
53
- #: ../../library/crypt.rst:39
54
+ #: ../../library/crypt.rst:40
54
55
msgid ":ref:`Availability <availability>`: Unix, not VxWorks."
55
56
msgstr ":ref:`適用 <availability>`:Unix,非 VxWorks。"
56
57
@@ -65,65 +66,65 @@ msgid ""
65
66
"more information."
66
67
msgstr ""
67
68
68
- #: ../../library/crypt.rst:44
69
+ #: ../../library/crypt.rst:45
69
70
msgid "Hashing Methods"
70
71
msgstr ""
71
72
72
- #: ../../library/crypt.rst:48
73
+ #: ../../library/crypt.rst:49
73
74
msgid ""
74
75
"The :mod:`crypt` module defines the list of hashing methods (not all methods "
75
76
"are available on all platforms):"
76
77
msgstr ""
77
78
78
- #: ../../library/crypt.rst:53
79
+ #: ../../library/crypt.rst:54
79
80
msgid ""
80
81
"A Modular Crypt Format method with 16 character salt and 86 character hash "
81
82
"based on the SHA-512 hash function. This is the strongest method."
82
83
msgstr ""
83
84
84
- #: ../../library/crypt.rst:58
85
+ #: ../../library/crypt.rst:59
85
86
msgid ""
86
87
"Another Modular Crypt Format method with 16 character salt and 43 character "
87
88
"hash based on the SHA-256 hash function."
88
89
msgstr ""
89
90
90
- #: ../../library/crypt.rst:63
91
+ #: ../../library/crypt.rst:64
91
92
msgid ""
92
93
"Another Modular Crypt Format method with 22 character salt and 31 character "
93
94
"hash based on the Blowfish cipher."
94
95
msgstr ""
95
96
96
- #: ../../library/crypt.rst:70
97
+ #: ../../library/crypt.rst:71
97
98
msgid ""
98
99
"Another Modular Crypt Format method with 8 character salt and 22 character "
99
100
"hash based on the MD5 hash function."
100
101
msgstr ""
101
102
102
- #: ../../library/crypt.rst:75
103
+ #: ../../library/crypt.rst:76
103
104
msgid ""
104
105
"The traditional method with a 2 character salt and 13 characters of hash. "
105
106
"This is the weakest method."
106
107
msgstr ""
107
108
108
- #: ../../library/crypt.rst:80
109
+ #: ../../library/crypt.rst:81
109
110
msgid "Module Attributes"
110
111
msgstr "模組屬性"
111
112
112
- #: ../../library/crypt.rst:86
113
+ #: ../../library/crypt.rst:87
113
114
msgid ""
114
115
"A list of available password hashing algorithms, as ``crypt.METHOD_*`` "
115
116
"objects. This list is sorted from strongest to weakest."
116
117
msgstr ""
117
118
118
- #: ../../library/crypt.rst:92
119
+ #: ../../library/crypt.rst:93
119
120
msgid "Module Functions"
120
121
msgstr "模組函式"
121
122
122
- #: ../../library/crypt.rst:94
123
+ #: ../../library/crypt.rst:95
123
124
msgid "The :mod:`crypt` module defines the following functions:"
124
125
msgstr ":mod:`crypt` 模組定義了以下函式:"
125
126
126
- #: ../../library/crypt.rst:98
127
+ #: ../../library/crypt.rst:99
127
128
msgid ""
128
129
"*word* will usually be a user's password as typed at a prompt or in a "
129
130
"graphical interface. The optional *salt* is either a string as returned "
@@ -133,14 +134,14 @@ msgid ""
133
134
"strongest method available in :attr:`methods` will be used."
134
135
msgstr ""
135
136
136
- #: ../../library/crypt.rst:105
137
+ #: ../../library/crypt.rst:106
137
138
msgid ""
138
139
"Checking a password is usually done by passing the plain-text password as "
139
140
"*word* and the full results of a previous :func:`crypt` call, which should "
140
141
"be the same as the results of this call."
141
142
msgstr ""
142
143
143
- #: ../../library/crypt.rst:109
144
+ #: ../../library/crypt.rst:110
144
145
msgid ""
145
146
"*salt* (either a random 2 or 16 character string, possibly prefixed with "
146
147
"``$digit$`` to indicate the method) which will be used to perturb the "
@@ -149,36 +150,36 @@ msgid ""
149
150
"``$digit$``."
150
151
msgstr ""
151
152
152
- #: ../../library/crypt.rst:115
153
+ #: ../../library/crypt.rst:116
153
154
msgid ""
154
155
"Returns the hashed password as a string, which will be composed of "
155
156
"characters from the same alphabet as the salt."
156
157
msgstr ""
157
158
158
- #: ../../library/crypt.rst:120
159
+ #: ../../library/crypt.rst:121
159
160
msgid ""
160
161
"Since a few :manpage:`crypt(3)` extensions allow different values, with "
161
162
"different sizes in the *salt*, it is recommended to use the full crypted "
162
163
"password as salt when checking for a password."
163
164
msgstr ""
164
165
165
- #: ../../library/crypt.rst:124
166
+ #: ../../library/crypt.rst:125
166
167
msgid "Accept ``crypt.METHOD_*`` values in addition to strings for *salt*."
167
168
msgstr ""
168
169
169
- #: ../../library/crypt.rst:130
170
+ #: ../../library/crypt.rst:131
170
171
msgid ""
171
172
"Return a randomly generated salt of the specified method. If no *method* is "
172
173
"given, the strongest method available in :attr:`methods` is used."
173
174
msgstr ""
174
175
175
- #: ../../library/crypt.rst:134
176
+ #: ../../library/crypt.rst:135
176
177
msgid ""
177
178
"The return value is a string suitable for passing as the *salt* argument to :"
178
179
"func:`crypt`."
179
180
msgstr ""
180
181
181
- #: ../../library/crypt.rst:137
182
+ #: ../../library/crypt.rst:138
182
183
msgid ""
183
184
"*rounds* specifies the number of rounds for ``METHOD_SHA256``, "
184
185
"``METHOD_SHA512`` and ``METHOD_BLOWFISH``. For ``METHOD_SHA256`` and "
@@ -188,29 +189,29 @@ msgid ""
188
189
"sup:`31`), the default is ``4096`` (2\\ :sup:`12`)."
189
190
msgstr ""
190
191
191
- #: ../../library/crypt.rst:147
192
+ #: ../../library/crypt.rst:148
192
193
msgid "Added the *rounds* parameter."
193
194
msgstr "新增 *rounds* 參數。"
194
195
195
- #: ../../library/crypt.rst:152
196
+ #: ../../library/crypt.rst:153
196
197
msgid "Examples"
197
198
msgstr "範例"
198
199
199
- #: ../../library/crypt.rst:154
200
+ #: ../../library/crypt.rst:155
200
201
msgid ""
201
202
"A simple example illustrating typical use (a constant-time comparison "
202
203
"operation is needed to limit exposure to timing attacks. :func:`hmac."
203
204
"compare_digest` is suitable for this purpose)::"
204
205
msgstr ""
205
206
206
- #: ../../library/crypt.rst:174
207
+ #: ../../library/crypt.rst:175
207
208
msgid ""
208
209
"To generate a hash of a password using the strongest available method and "
209
210
"check it against the original::"
210
211
msgstr ""
211
212
212
- #: ../../library/crypt.rst:15 ../../library/crypt.rst:32
213
- #: ../../library/crypt.rst:118
213
+ #: ../../library/crypt.rst:15 ../../library/crypt.rst:33
214
+ #: ../../library/crypt.rst:119
214
215
msgid "crypt(3)"
215
216
msgstr "crypt(3)"
216
217
0 commit comments