src/eric7/Documentation/Source/eric7.Utilities.crypto.py3PBKDF2.html

branch
eric7
changeset 10479
856476537696
parent 10433
328f3ec4b77a
equal deleted inserted replaced
10478:de9106c55c3d 10479:856476537696
5 <link rel="stylesheet" href="styles.css"> 5 <link rel="stylesheet" href="styles.css">
6 </head> 6 </head>
7 <body> 7 <body>
8 <a NAME="top" ID="top"></a> 8 <a NAME="top" ID="top"></a>
9 <h1>eric7.Utilities.crypto.py3PBKDF2</h1> 9 <h1>eric7.Utilities.crypto.py3PBKDF2</h1>
10
11 <p> 10 <p>
12 Module implementing PBKDF2 functions. 11 Module implementing PBKDF2 functions.
13 </p> 12 </p>
13
14 <h3>Global Attributes</h3> 14 <h3>Global Attributes</h3>
15
16 <table> 15 <table>
17 <tr><td>Delimiter</td></tr><tr><td>Hashes</td></tr> 16 <tr><td>Delimiter</td></tr>
17 <tr><td>Hashes</td></tr>
18 </table> 18 </table>
19
19 <h3>Classes</h3> 20 <h3>Classes</h3>
20
21 <table> 21 <table>
22 <tr><td>None</td></tr> 22 <tr><td>None</td></tr>
23 </table> 23 </table>
24
24 <h3>Functions</h3> 25 <h3>Functions</h3>
25
26 <table> 26 <table>
27
28 <tr> 27 <tr>
29 <td><a href="#hashPassword">hashPassword</a></td> 28 <td><a href="#hashPassword">hashPassword</a></td>
30 <td>Module function to hash a password according to the PBKDF2 specification.</td> 29 <td>Module function to hash a password according to the PBKDF2 specification.</td>
31 </tr> 30 </tr>
32 <tr> 31 <tr>
44 <tr> 43 <tr>
45 <td><a href="#verifyPassword">verifyPassword</a></td> 44 <td><a href="#verifyPassword">verifyPassword</a></td>
46 <td>Module function to verify a password against a hash encoded password.</td> 45 <td>Module function to verify a password against a hash encoded password.</td>
47 </tr> 46 </tr>
48 </table> 47 </table>
48
49 <hr /> 49 <hr />
50 <hr /> 50 <hr />
51 <a NAME="hashPassword" ID="hashPassword"></a> 51 <a NAME="hashPassword" ID="hashPassword"></a>
52 <h2>hashPassword</h2> 52 <h2>hashPassword</h2>
53 <b>hashPassword</b>(<i>password, digestMod=hashlib.sha512, iterations=10000, saltSize=32</i>) 53 <b>hashPassword</b>(<i>password, digestMod=hashlib.sha512, iterations=10000, saltSize=32</i>)
54
55 <p> 54 <p>
56 Module function to hash a password according to the PBKDF2 specification. 55 Module function to hash a password according to the PBKDF2 specification.
57 </p> 56 </p>
57
58 <dl> 58 <dl>
59 59
60 <dt><i>password</i> (str)</dt> 60 <dt><i>password</i> (str)</dt>
61 <dd> 61 <dd>
62 clear text password 62 clear text password
90 <hr /> 90 <hr />
91 <hr /> 91 <hr />
92 <a NAME="hashPasswordTuple" ID="hashPasswordTuple"></a> 92 <a NAME="hashPasswordTuple" ID="hashPasswordTuple"></a>
93 <h2>hashPasswordTuple</h2> 93 <h2>hashPasswordTuple</h2>
94 <b>hashPasswordTuple</b>(<i>password, digestMod=hashlib.sha512, iterations=10000, saltSize=32</i>) 94 <b>hashPasswordTuple</b>(<i>password, digestMod=hashlib.sha512, iterations=10000, saltSize=32</i>)
95
96 <p> 95 <p>
97 Module function to hash a password according to the PBKDF2 specification. 96 Module function to hash a password according to the PBKDF2 specification.
98 </p> 97 </p>
98
99 <dl> 99 <dl>
100 100
101 <dt><i>password</i> (str)</dt> 101 <dt><i>password</i> (str)</dt>
102 <dd> 102 <dd>
103 clear text password 103 clear text password
131 <hr /> 131 <hr />
132 <hr /> 132 <hr />
133 <a NAME="pbkdf2" ID="pbkdf2"></a> 133 <a NAME="pbkdf2" ID="pbkdf2"></a>
134 <h2>pbkdf2</h2> 134 <h2>pbkdf2</h2>
135 <b>pbkdf2</b>(<i>password, salt, iterations, digestMod</i>) 135 <b>pbkdf2</b>(<i>password, salt, iterations, digestMod</i>)
136
137 <p> 136 <p>
138 Module function to hash a password according to the PBKDF2 specification. 137 Module function to hash a password according to the PBKDF2 specification.
139 </p> 138 </p>
139
140 <dl> 140 <dl>
141 141
142 <dt><i>password</i> (bytes)</dt> 142 <dt><i>password</i> (bytes)</dt>
143 <dd> 143 <dd>
144 clear text password 144 clear text password
172 <hr /> 172 <hr />
173 <hr /> 173 <hr />
174 <a NAME="rehashPassword" ID="rehashPassword"></a> 174 <a NAME="rehashPassword" ID="rehashPassword"></a>
175 <h2>rehashPassword</h2> 175 <h2>rehashPassword</h2>
176 <b>rehashPassword</b>(<i>password, hashParameters</i>) 176 <b>rehashPassword</b>(<i>password, hashParameters</i>)
177
178 <p> 177 <p>
179 Module function to recreate a password hash given the hash parameters. 178 Module function to recreate a password hash given the hash parameters.
180 </p> 179 </p>
180
181 <dl> 181 <dl>
182 182
183 <dt><i>password</i> (str)</dt> 183 <dt><i>password</i> (str)</dt>
184 <dd> 184 <dd>
185 clear text password 185 clear text password
214 <hr /> 214 <hr />
215 <hr /> 215 <hr />
216 <a NAME="verifyPassword" ID="verifyPassword"></a> 216 <a NAME="verifyPassword" ID="verifyPassword"></a>
217 <h2>verifyPassword</h2> 217 <h2>verifyPassword</h2>
218 <b>verifyPassword</b>(<i>password, pwHash</i>) 218 <b>verifyPassword</b>(<i>password, pwHash</i>)
219
220 <p> 219 <p>
221 Module function to verify a password against a hash encoded password. 220 Module function to verify a password against a hash encoded password.
222 </p> 221 </p>
222
223 <dl> 223 <dl>
224 224
225 <dt><i>password</i> (str)</dt> 225 <dt><i>password</i> (str)</dt>
226 <dd> 226 <dd>
227 clear text password 227 clear text password

eric ide

mercurial