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

branch
eric7
changeset 11139
cd22e8e705f4
parent 11136
437db2f032fd
equal deleted inserted replaced
11138:1f743bad6fd3 11139:cd22e8e705f4
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html><head> 2 <html><head>
3 <title>eric7.Plugins.CheckerPlugins.CodeStyleChecker.Security.Checks.insecureHashlibNew</title> 3 <title>eric7.Plugins.CheckerPlugins.CodeStyleChecker.Security.Checks.hashlibInsecureFunctions</title>
4 <meta charset="UTF-8"> 4 <meta charset="UTF-8">
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.hashlibInsecureFunctions</h1>
10 <p> 10 <p>
11 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
12 functions in hashlib.new(). 12 functions in hashlib.
13 </p> 13 </p>
14 14
15 <h3>Global Attributes</h3> 15 <h3>Global Attributes</h3>
16 <table> 16 <table>
17 <tr><td>None</td></tr> 17 <tr><td>None</td></tr>
28 <td><a href="#_cryptCrypt">_cryptCrypt</a></td> 28 <td><a href="#_cryptCrypt">_cryptCrypt</a></td>
29 <td>Function to check for use of insecure md4, md5, sha or sha1 hash functions in crypt.crypt().</td> 29 <td>Function to check for use of insecure md4, md5, sha or sha1 hash functions in crypt.crypt().</td>
30 </tr> 30 </tr>
31 <tr> 31 <tr>
32 <td><a href="#_hashlibFunc">_hashlibFunc</a></td> 32 <td><a href="#_hashlibFunc">_hashlibFunc</a></td>
33 <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> 33 <td>Function to check for use of insecure md4, md5, or sha1 hash functions in hashlib if 'usedforsecurity' is not set to 'False'.</td>
34 </tr>
35 <tr>
36 <td><a href="#_hashlibNew">_hashlibNew</a></td>
37 <td>Function to check for use of insecure md4, md5, sha or sha1 hash functions in hashlib.new().</td>
38 </tr> 34 </tr>
39 <tr> 35 <tr>
40 <td><a href="#checkHashlib">checkHashlib</a></td> 36 <td><a href="#checkHashlib">checkHashlib</a></td>
41 <td>Function to check for use of insecure md4, md5, sha or sha1 hash functions in hashlib.new().</td> 37 <td>Function to check for use of insecure md4, md5, sha or sha1 hash functions in hashlib.new().</td>
42 </tr> 38 </tr>
80 <hr /> 76 <hr />
81 <a NAME="_hashlibFunc" ID="_hashlibFunc"></a> 77 <a NAME="_hashlibFunc" ID="_hashlibFunc"></a>
82 <h2>_hashlibFunc</h2> 78 <h2>_hashlibFunc</h2>
83 <b>_hashlibFunc</b>(<i>reportError, context, func, config</i>) 79 <b>_hashlibFunc</b>(<i>reportError, context, func, config</i>)
84 <p> 80 <p>
85 Function to check for use of insecure md4, md5, sha or sha1 hash functions 81 Function to check for use of insecure md4, md5, or sha1 hash functions
86 in hashlib.new() if 'usedforsecurity' is not set to 'False'. 82 in hashlib if 'usedforsecurity' is not set to 'False'.
87 </p>
88
89 <dl>
90
91 <dt><i>reportError</i> (func)</dt>
92 <dd>
93 function to be used to report errors
94 </dd>
95 <dt><i>context</i> (SecurityContext)</dt>
96 <dd>
97 security context object
98 </dd>
99 <dt><i>func</i> (str)</dt>
100 <dd>
101 name of the hash function
102 </dd>
103 <dt><i>config</i> (dict)</dt>
104 <dd>
105 dictionary with configuration data
106 </dd>
107 </dl>
108 <div align="right"><a href="#top">Up</a></div>
109 <hr />
110 <hr />
111 <a NAME="_hashlibNew" ID="_hashlibNew"></a>
112 <h2>_hashlibNew</h2>
113 <b>_hashlibNew</b>(<i>reportError, context, func, config</i>)
114 <p>
115 Function to check for use of insecure md4, md5, sha or sha1 hash functions
116 in hashlib.new().
117 </p> 83 </p>
118 84
119 <dl> 85 <dl>
120 86
121 <dt><i>reportError</i> (func)</dt> 87 <dt><i>reportError</i> (func)</dt>

eric ide

mercurial