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

branch
eric7
changeset 10507
d1c6608155ef
parent 10479
856476537696
equal deleted inserted replaced
10506:321555d0303b 10507:d1c6608155ef
23 </table> 23 </table>
24 24
25 <h3>Functions</h3> 25 <h3>Functions</h3>
26 <table> 26 <table>
27 <tr> 27 <tr>
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>
30 </tr>
31 <tr>
28 <td><a href="#_hashlibFunc">_hashlibFunc</a></td> 32 <td><a href="#_hashlibFunc">_hashlibFunc</a></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> 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>
30 </tr> 34 </tr>
31 <tr> 35 <tr>
32 <td><a href="#_hashlibNew">_hashlibNew</a></td> 36 <td><a href="#_hashlibNew">_hashlibNew</a></td>
42 </tr> 46 </tr>
43 </table> 47 </table>
44 48
45 <hr /> 49 <hr />
46 <hr /> 50 <hr />
51 <a NAME="_cryptCrypt" ID="_cryptCrypt"></a>
52 <h2>_cryptCrypt</h2>
53 <b>_cryptCrypt</b>(<i>reportError, context, func, config</i>)
54 <p>
55 Function to check for use of insecure md4, md5, sha or sha1 hash functions
56 in crypt.crypt().
57 </p>
58
59 <dl>
60
61 <dt><i>reportError</i> (func)</dt>
62 <dd>
63 function to be used to report errors
64 </dd>
65 <dt><i>context</i> (SecurityContext)</dt>
66 <dd>
67 security context object
68 </dd>
69 <dt><i>func</i> (str)</dt>
70 <dd>
71 name of the hash function
72 </dd>
73 <dt><i>config</i> (dict)</dt>
74 <dd>
75 dictionary with configuration data
76 </dd>
77 </dl>
78 <div align="right"><a href="#top">Up</a></div>
79 <hr />
80 <hr />
47 <a NAME="_hashlibFunc" ID="_hashlibFunc"></a> 81 <a NAME="_hashlibFunc" ID="_hashlibFunc"></a>
48 <h2>_hashlibFunc</h2> 82 <h2>_hashlibFunc</h2>
49 <b>_hashlibFunc</b>(<i>reportError, context, config</i>) 83 <b>_hashlibFunc</b>(<i>reportError, context, func, config</i>)
50 <p> 84 <p>
51 Function to check for use of insecure md4, md5, sha or sha1 hash functions 85 Function to check for use of insecure md4, md5, sha or sha1 hash functions
52 in hashlib.new() if 'usedforsecurity' is not set to 'False'. 86 in hashlib.new() if 'usedforsecurity' is not set to 'False'.
53 </p> 87 </p>
54 88
60 </dd> 94 </dd>
61 <dt><i>context</i> (SecurityContext)</dt> 95 <dt><i>context</i> (SecurityContext)</dt>
62 <dd> 96 <dd>
63 security context object 97 security context object
64 </dd> 98 </dd>
99 <dt><i>func</i> (str)</dt>
100 <dd>
101 name of the hash function
102 </dd>
65 <dt><i>config</i> (dict)</dt> 103 <dt><i>config</i> (dict)</dt>
66 <dd> 104 <dd>
67 dictionary with configuration data 105 dictionary with configuration data
68 </dd> 106 </dd>
69 </dl> 107 </dl>
70 <div align="right"><a href="#top">Up</a></div> 108 <div align="right"><a href="#top">Up</a></div>
71 <hr /> 109 <hr />
72 <hr /> 110 <hr />
73 <a NAME="_hashlibNew" ID="_hashlibNew"></a> 111 <a NAME="_hashlibNew" ID="_hashlibNew"></a>
74 <h2>_hashlibNew</h2> 112 <h2>_hashlibNew</h2>
75 <b>_hashlibNew</b>(<i>reportError, context, config</i>) 113 <b>_hashlibNew</b>(<i>reportError, context, func, config</i>)
76 <p> 114 <p>
77 Function to check for use of insecure md4, md5, sha or sha1 hash functions 115 Function to check for use of insecure md4, md5, sha or sha1 hash functions
78 in hashlib.new(). 116 in hashlib.new().
79 </p> 117 </p>
80 118
85 function to be used to report errors 123 function to be used to report errors
86 </dd> 124 </dd>
87 <dt><i>context</i> (SecurityContext)</dt> 125 <dt><i>context</i> (SecurityContext)</dt>
88 <dd> 126 <dd>
89 security context object 127 security context object
128 </dd>
129 <dt><i>func</i> (str)</dt>
130 <dd>
131 name of the hash function
90 </dd> 132 </dd>
91 <dt><i>config</i> (dict)</dt> 133 <dt><i>config</i> (dict)</dt>
92 <dd> 134 <dd>
93 dictionary with configuration data 135 dictionary with configuration data
94 </dd> 136 </dd>

eric ide

mercurial