MCPcopy Create free account
hub / github.com/git-bug/git-bug / newCredentialBase

Function newCredentialBase

bridge/core/auth/credential_base.go:21–27  ·  view source on GitHub ↗
(target string)

Source from the content-addressed store, hash-verified

19}
20
21func newCredentialBase(target string) *credentialBase {
22 return &credentialBase{
23 target: target,
24 createTime: time.Now(),
25 salt: makeSalt(),
26 }
27}
28
29func makeSalt() []byte {
30 result := make([]byte, 16)

Callers 3

NewLoginFunction · 0.85
NewLoginPasswordFunction · 0.85
NewTokenFunction · 0.85

Calls 1

makeSaltFunction · 0.85

Tested by

no test coverage detected