Set the Cyberdeck password
()
| 2863 | |
| 2864 | // Set the Cyberdeck password |
| 2865 | func 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 |
| 2878 | func newRPCUsername() (s string) { |
no outgoing calls
no test coverage detected