sanketsaurav / lore

Audit required: Insecure hash function PTC-W1003
Security
Major
4 years ago5 years old
Use of insecure hashlib.sha1 hash function
52            instance.__module__,
53            instance.__class__.__name__,
54            caller.__code__.co_name,
55            hashlib.sha1(str(args).encode('utf-8') + str(kwargs).encode('utf-8')).hexdigest()56        ))
Use of insecure hashlib.sha1 hash function
 62    @property
 63    def table(self):
 64        if self._table is None:
 65            self._table = 'pipeline_' + self.__class__.__name__.lower() + '_' + hashlib.sha1( 66                str(self.__dict__).encode('utf-8')).hexdigest()
 67
 68        return self._table
Use of insecure hashlib.sha1 hash function
281
282    @query_cached
283    def _unload(self, sql, bindings):
284        key = hashlib.sha1(str(sql).encode('utf-8')).hexdigest()285
286        match = re.match(r'.*?select\s(.*)from.*', sql, flags=re.IGNORECASE | re.UNICODE | re.DOTALL)
287        if match: