eric7.Plugins.CheckerPlugins.CodeStyleChecker.Security.Checks.insecureHashlibNew
Module implementing a check for use of insecure md4, md5, or sha1 hash
functions in hashlib.new().
Global Attributes
Classes
Functions
| _cryptCrypt | Function to check for use of insecure md4, md5, sha or sha1 hash functions in crypt.crypt(). | 
| _hashlibFunc | Function to check for use of insecure md4, md5, sha or sha1 hash functions in hashlib.new() if 'usedforsecurity' is not set to 'False'. | 
| _hashlibNew | Function to check for use of insecure md4, md5, sha or sha1 hash functions in hashlib.new(). | 
| checkHashlib | Function to check for use of insecure md4, md5, sha or sha1 hash functions in hashlib.new(). | 
| getChecks | Public method to get a dictionary with checks handled by this module. | 
_cryptCrypt
_cryptCrypt(reportError, context, func, config)
    Function to check for use of insecure md4, md5, sha or sha1 hash functions
    in crypt.crypt().
- reportError (func)
- 
function to be used to report errors
- context (SecurityContext)
- 
security context object
- func (str)
- 
name of the hash function
- config (dict)
- 
dictionary with configuration data
_hashlibFunc
_hashlibFunc(reportError, context, func, config)
    Function to check for use of insecure md4, md5, sha or sha1 hash functions
    in hashlib.new() if 'usedforsecurity' is not set to 'False'.
- reportError (func)
- 
function to be used to report errors
- context (SecurityContext)
- 
security context object
- func (str)
- 
name of the hash function
- config (dict)
- 
dictionary with configuration data
_hashlibNew
_hashlibNew(reportError, context, func, config)
    Function to check for use of insecure md4, md5, sha or sha1 hash functions
    in hashlib.new().
- reportError (func)
- 
function to be used to report errors
- context (SecurityContext)
- 
security context object
- func (str)
- 
name of the hash function
- config (dict)
- 
dictionary with configuration data
checkHashlib
checkHashlib(reportError, context, config)
    Function to check for use of insecure md4, md5, sha or sha1 hash functions
    in hashlib.new().
- reportError (func)
- 
function to be used to report errors
- context (SecurityContext)
- 
security context object
- config (dict)
- 
dictionary with configuration data
getChecks
getChecks()
    Public method to get a dictionary with checks handled by this module.
- Return:
- 
dictionary containing checker lists containing checker function and
        list of codes
- Return Type:
- 
dict