MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / looksLikeBcrypt

Function looksLikeBcrypt

internal/config/config.go:1101–1103  ·  view source on GitHub ↗

looksLikeBcrypt returns true if the provided string appears to be a bcrypt hash.

(s string)

Source from the content-addressed store, hash-verified

1099
1100// looksLikeBcrypt returns true if the provided string appears to be a bcrypt hash.
1101func looksLikeBcrypt(s string) bool {
1102 return len(s) > 4 && (s[:4] == "$2a$" || s[:4] == "$2b$" || s[:4] == "$2y$")
1103}
1104
1105// NormalizeHeaders trims header keys and values and removes empty pairs.
1106func NormalizeHeaders(headers map[string]string) map[string]string {

Callers 2

ParseConfigBytesFunction · 0.85
LoadConfigOptionalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected