MCPcopy Index your code
hub / github.com/ContainerSSH/ContainerSSH / RandomPassword

Method RandomPassword

internal/sshserver/TestUser.go:57–59  ·  view source on GitHub ↗

RandomPassword generates a random password for this user.

()

Source from the content-addressed store, hash-verified

55
56// RandomPassword generates a random password for this user.
57func (u *TestUser) RandomPassword() {
58 u.password = test.RandomString(16)
59}
60
61// GenerateKey generates a public and private key pair that can be used to authenticate with this user.
62func (u *TestUser) GenerateKey() (privateKeyPEM string, publicKeyAuthorizedKeys string) {

Callers 8

createTestServerFunction · 0.95
TestKeepAliveFunction · 0.95
TestProperShutdownFunction · 0.95

Calls 1

RandomStringFunction · 0.92

Tested by 3

createTestServerFunction · 0.76
TestKeepAliveFunction · 0.76
TestProperShutdownFunction · 0.76