MCPcopy Create free account
hub / github.com/DEROFDN/Engram / newRPCPassword

Function newRPCPassword

functions.go:2865–2875  ·  view source on GitHub ↗

Set the Cyberdeck password

()

Source from the content-addressed store, hash-verified

2863
2864// Set the Cyberdeck password
2865func newRPCPassword() (s string) {
2866 r := make([]byte, 20)
2867 _, err := rand.Read(r)
2868 if err != nil {
2869 panic(err)
2870 }
2871
2872 s = base64.URLEncoding.EncodeToString(r)
2873 cyberdeck.RPC.pass = s
2874 return
2875}
2876
2877// Set the Cyberdeck username
2878func newRPCUsername() (s string) {

Callers 2

toggleRPCServerFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected