mirror of
https://github.com/securego/gosec.git
synced 2025-11-23 22:15:04 +02:00
Add sha1 to weak crypto primitives
This commit is contained in:
@@ -90,6 +90,7 @@ func Generate(filters ...RuleFilter) RuleList {
|
||||
{"G502", "Import blacklist: crypto/des", NewBlacklistedImportDES},
|
||||
{"G503", "Import blacklist: crypto/rc4", NewBlacklistedImportRC4},
|
||||
{"G504", "Import blacklist: net/http/cgi", NewBlacklistedImportCGI},
|
||||
{"G505", "Import blacklist: crypto/sha1", NewBlacklistedImportSHA1},
|
||||
}
|
||||
|
||||
ruleMap := make(map[string]RuleDefinition)
|
||||
|
||||
Reference in New Issue
Block a user