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.Plugins.CheckerPlugins.CodeStyleChecker.Security.Checks.insecureHashlibNew</h1> |
9 <h1>eric7.Plugins.CheckerPlugins.CodeStyleChecker.Security.Checks.insecureHashlibNew</h1> |
10 |
|
11 <p> |
10 <p> |
12 Module implementing a check for use of insecure md4, md5, or sha1 hash |
11 Module implementing a check for use of insecure md4, md5, or sha1 hash |
13 functions in hashlib.new(). |
12 functions in hashlib.new(). |
14 </p> |
13 </p> |
|
14 |
15 <h3>Global Attributes</h3> |
15 <h3>Global Attributes</h3> |
16 |
|
17 <table> |
16 <table> |
18 <tr><td>None</td></tr> |
17 <tr><td>None</td></tr> |
19 </table> |
18 </table> |
|
19 |
20 <h3>Classes</h3> |
20 <h3>Classes</h3> |
21 |
|
22 <table> |
21 <table> |
23 <tr><td>None</td></tr> |
22 <tr><td>None</td></tr> |
24 </table> |
23 </table> |
|
24 |
25 <h3>Functions</h3> |
25 <h3>Functions</h3> |
26 |
|
27 <table> |
26 <table> |
28 |
|
29 <tr> |
27 <tr> |
30 <td><a href="#_hashlibFunc">_hashlibFunc</a></td> |
28 <td><a href="#_hashlibFunc">_hashlibFunc</a></td> |
31 <td>Function to check for use of insecure md4, md5, sha or sha1 hash functions in hashlib.new() if 'usedforsecurity' is not set to 'False'.</td> |
29 <td>Function to check for use of insecure md4, md5, sha or sha1 hash functions in hashlib.new() if 'usedforsecurity' is not set to 'False'.</td> |
32 </tr> |
30 </tr> |
33 <tr> |
31 <tr> |
41 <tr> |
39 <tr> |
42 <td><a href="#getChecks">getChecks</a></td> |
40 <td><a href="#getChecks">getChecks</a></td> |
43 <td>Public method to get a dictionary with checks handled by this module.</td> |
41 <td>Public method to get a dictionary with checks handled by this module.</td> |
44 </tr> |
42 </tr> |
45 </table> |
43 </table> |
|
44 |
46 <hr /> |
45 <hr /> |
47 <hr /> |
46 <hr /> |
48 <a NAME="_hashlibFunc" ID="_hashlibFunc"></a> |
47 <a NAME="_hashlibFunc" ID="_hashlibFunc"></a> |
49 <h2>_hashlibFunc</h2> |
48 <h2>_hashlibFunc</h2> |
50 <b>_hashlibFunc</b>(<i>reportError, context, config</i>) |
49 <b>_hashlibFunc</b>(<i>reportError, context, config</i>) |
51 |
|
52 <p> |
50 <p> |
53 Function to check for use of insecure md4, md5, sha or sha1 hash functions |
51 Function to check for use of insecure md4, md5, sha or sha1 hash functions |
54 in hashlib.new() if 'usedforsecurity' is not set to 'False'. |
52 in hashlib.new() if 'usedforsecurity' is not set to 'False'. |
55 </p> |
53 </p> |
|
54 |
56 <dl> |
55 <dl> |
57 |
56 |
58 <dt><i>reportError</i> (func)</dt> |
57 <dt><i>reportError</i> (func)</dt> |
59 <dd> |
58 <dd> |
60 function to be used to report errors |
59 function to be used to report errors |
72 <hr /> |
71 <hr /> |
73 <hr /> |
72 <hr /> |
74 <a NAME="_hashlibNew" ID="_hashlibNew"></a> |
73 <a NAME="_hashlibNew" ID="_hashlibNew"></a> |
75 <h2>_hashlibNew</h2> |
74 <h2>_hashlibNew</h2> |
76 <b>_hashlibNew</b>(<i>reportError, context, config</i>) |
75 <b>_hashlibNew</b>(<i>reportError, context, config</i>) |
77 |
|
78 <p> |
76 <p> |
79 Function to check for use of insecure md4, md5, sha or sha1 hash functions |
77 Function to check for use of insecure md4, md5, sha or sha1 hash functions |
80 in hashlib.new(). |
78 in hashlib.new(). |
81 </p> |
79 </p> |
|
80 |
82 <dl> |
81 <dl> |
83 |
82 |
84 <dt><i>reportError</i> (func)</dt> |
83 <dt><i>reportError</i> (func)</dt> |
85 <dd> |
84 <dd> |
86 function to be used to report errors |
85 function to be used to report errors |
98 <hr /> |
97 <hr /> |
99 <hr /> |
98 <hr /> |
100 <a NAME="checkHashlib" ID="checkHashlib"></a> |
99 <a NAME="checkHashlib" ID="checkHashlib"></a> |
101 <h2>checkHashlib</h2> |
100 <h2>checkHashlib</h2> |
102 <b>checkHashlib</b>(<i>reportError, context, config</i>) |
101 <b>checkHashlib</b>(<i>reportError, context, config</i>) |
103 |
|
104 <p> |
102 <p> |
105 Function to check for use of insecure md4, md5, sha or sha1 hash functions |
103 Function to check for use of insecure md4, md5, sha or sha1 hash functions |
106 in hashlib.new(). |
104 in hashlib.new(). |
107 </p> |
105 </p> |
|
106 |
108 <dl> |
107 <dl> |
109 |
108 |
110 <dt><i>reportError</i> (func)</dt> |
109 <dt><i>reportError</i> (func)</dt> |
111 <dd> |
110 <dd> |
112 function to be used to report errors |
111 function to be used to report errors |