MCPcopy Index your code
hub / github.com/tinyauthapp/tinyauth / GetBasicAuth

Function GetBasicAuth

internal/utils/security_utils.go:44–47  ·  view source on GitHub ↗
(username string, password string)

Source from the content-addressed store, hash-verified

42}
43
44func GetBasicAuth(username string, password string) string {
45 auth := username + ":" + password
46 return base64.StdEncoding.EncodeToString([]byte(auth))
47}
48
49func FilterIP(filter string, ip string) (bool, error) {
50 ipAddr := net.ParseIP(ip)

Callers 2

TestGetBasicAuthFunction · 0.92
setHeadersMethod · 0.92

Calls

no outgoing calls

Tested by 1

TestGetBasicAuthFunction · 0.74