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