MD5 hash algorithm is insecure: md5.Sum([]byte(name))
1837 // file extension.
1838 if len(name) >= 250 {
1839 // skipcq: GSC-G401
1840 name = fmt.Sprintf("%s-%x", name[:(250-md5.Size*2-1)], md5.Sum([]byte(name)))1841 }
1842
1843 // Note: Timestamp for each points.Points are set by collector send logics
Description
MD5 is cryptographically broken and should not be used for secure applications. It is recommended to use better replacement algorithms instead.
MD5 is widely used as a hash function for producing 128-bit hash value but it suffers from extensive vulnerabilities and it highly recommended to not use MD5.
Bad practice
h := md5.New()
_, _ = io.Copy(h, f)