srijan-deepsource / readthedocs.org

Errors detected in .deepsource.toml.

Audit required: Insecure hash function PTC-W1003
Security
Major
4 years ago4 years old
Use of insecure hashlib.md5 hash function
1532            relpath = full_path.replace(storage_path, '', 1).lstrip('/')
1533
1534            try:
1535                md5 = hashlib.md5(storage.open(full_path, 'rb').read()).hexdigest()1536            except Exception:
1537                log.exception(
1538                    'Error while generating md5 for %s:%s:%s. Don\'t stop.',
Use of insecure hashlib.md5 hash function
 27    omgwtfstillreading
 28    """
 29    url = 'http://www.gravatar.com/avatar.php?%s' % urlencode({
 30        'gravatar_id': hashlib.md5(email).hexdigest(), 31        'size': str(size),
 32    })
 33    return (