phires / go-guerrilla

MIT License
112 stars 18 forks source link

gosec: p_hasher.go: G401 (CWE-326): Use of weak cryptographic primitive #10

Closed phires closed 5 months ago

phires commented 1 year ago
[/go-guerrilla/backends/p_hasher.go:41] - G401 (CWE-326): Use of weak cryptographic primitive (Confidence: HIGH, Severity: MEDIUM)
    40:                                 // base hash, use subject from and timestamp-nano
  > 41:                                 h := md5.New()
    42:                                 ts := fmt.Sprintf("%d", time.Now().UnixNano())