|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric7.Plugins.CheckerPlugins.CodeStyleChecker.Security.Checks.insecureHashlibNew</title> |
|
4 <meta charset="UTF-8"> |
|
5 <link rel="stylesheet" href="styles.css"> |
|
6 </head> |
|
7 <body> |
|
8 <a NAME="top" ID="top"></a> |
|
9 <h1>eric7.Plugins.CheckerPlugins.CodeStyleChecker.Security.Checks.insecureHashlibNew</h1> |
|
10 |
|
11 <p> |
|
12 Module implementing a check for use of insecure md4, md5, or sha1 hash |
|
13 functions in hashlib.new(). |
|
14 </p> |
|
15 <h3>Global Attributes</h3> |
|
16 |
|
17 <table> |
|
18 <tr><td>None</td></tr> |
|
19 </table> |
|
20 <h3>Classes</h3> |
|
21 |
|
22 <table> |
|
23 <tr><td>None</td></tr> |
|
24 </table> |
|
25 <h3>Functions</h3> |
|
26 |
|
27 <table> |
|
28 |
|
29 <tr> |
|
30 <td><a href="#checkHashlibNew">checkHashlibNew</a></td> |
|
31 <td>Function to check for use of insecure md4, md5, or sha1 hash functions in hashlib.new().</td> |
|
32 </tr> |
|
33 <tr> |
|
34 <td><a href="#getChecks">getChecks</a></td> |
|
35 <td>Public method to get a dictionary with checks handled by this module.</td> |
|
36 </tr> |
|
37 </table> |
|
38 <hr /> |
|
39 <hr /> |
|
40 <a NAME="checkHashlibNew" ID="checkHashlibNew"></a> |
|
41 <h2>checkHashlibNew</h2> |
|
42 <b>checkHashlibNew</b>(<i>reportError, context, config</i>) |
|
43 |
|
44 <p> |
|
45 Function to check for use of insecure md4, md5, or sha1 hash functions |
|
46 in hashlib.new(). |
|
47 </p> |
|
48 <dl> |
|
49 |
|
50 <dt><i>reportError</i> (func)</dt> |
|
51 <dd> |
|
52 function to be used to report errors |
|
53 </dd> |
|
54 <dt><i>context</i> (SecurityContext)</dt> |
|
55 <dd> |
|
56 security context object |
|
57 </dd> |
|
58 <dt><i>config</i> (dict)</dt> |
|
59 <dd> |
|
60 dictionary with configuration data |
|
61 </dd> |
|
62 </dl> |
|
63 <div align="right"><a href="#top">Up</a></div> |
|
64 <hr /> |
|
65 <hr /> |
|
66 <a NAME="getChecks" ID="getChecks"></a> |
|
67 <h2>getChecks</h2> |
|
68 <b>getChecks</b>(<i></i>) |
|
69 |
|
70 <p> |
|
71 Public method to get a dictionary with checks handled by this module. |
|
72 </p> |
|
73 <dl> |
|
74 <dt>Return:</dt> |
|
75 <dd> |
|
76 dictionary containing checker lists containing checker function and |
|
77 list of codes |
|
78 </dd> |
|
79 </dl> |
|
80 <dl> |
|
81 <dt>Return Type:</dt> |
|
82 <dd> |
|
83 dict |
|
84 </dd> |
|
85 </dl> |
|
86 <div align="right"><a href="#top">Up</a></div> |
|
87 <hr /> |
|
88 </body></html> |