src/eric7/Documentation/Source/eric7.Plugins.CheckerPlugins.CodeStyleChecker.Security.Checks.insecureHashlibNew.html

branch
eric7
changeset 10479
856476537696
parent 9325
8157eb19aba5
child 10507
d1c6608155ef
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.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
124 <hr /> 123 <hr />
125 <hr /> 124 <hr />
126 <a NAME="getChecks" ID="getChecks"></a> 125 <a NAME="getChecks" ID="getChecks"></a>
127 <h2>getChecks</h2> 126 <h2>getChecks</h2>
128 <b>getChecks</b>(<i></i>) 127 <b>getChecks</b>(<i></i>)
129
130 <p> 128 <p>
131 Public method to get a dictionary with checks handled by this module. 129 Public method to get a dictionary with checks handled by this module.
132 </p> 130 </p>
131
133 <dl> 132 <dl>
134 <dt>Return:</dt> 133 <dt>Return:</dt>
135 <dd> 134 <dd>
136 dictionary containing checker lists containing checker function and 135 dictionary containing checker lists containing checker function and
137 list of codes 136 list of codes

eric ide

mercurial