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

Function proxyAuthorization

sdk/proxyutil/proxy.go:227–232  ·  view source on GitHub ↗
(user *url.Userinfo)

Source from the content-addressed store, hash-verified

225}
226
227func proxyAuthorization(user *url.Userinfo) string {
228 username := user.Username()
229 password, _ := user.Password()
230 encoded := base64.StdEncoding.EncodeToString([]byte(username + ":" + password))
231 return "Basic " + encoded
232}
233
234// Redact returns a log-safe proxy URL with credentials and path-like data removed.
235func Redact(raw string) string {

Callers 1

DialMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected