MCPcopy
hub / github.com/pquerna/otp / Secret

Method Secret

otp.go:134–138  ·  view source on GitHub ↗

Secret returns the opaque secret for this Key.

()

Source from the content-addressed store, hash-verified

132
133// Secret returns the opaque secret for this Key.
134func (k *Key) Secret() string {
135 q := k.url.Query()
136
137 return q.Get("secret")
138}
139
140// Period returns a tiny int representing the rotation time in seconds.
141func (k *Key) Period() uint64 {

Callers 9

TestKeyAllThereFunction · 0.80
TestKeyWithNewLineFunction · 0.80
displayFunction · 0.80
mainFunction · 0.80
TestGenerateFunction · 0.80
TestTwoFactorFunction · 0.80
TestGenerateFunction · 0.80
TestSteamSecretFunction · 0.80

Calls

no outgoing calls

Tested by 7

TestKeyAllThereFunction · 0.64
TestKeyWithNewLineFunction · 0.64
TestGenerateFunction · 0.64
TestTwoFactorFunction · 0.64
TestGenerateFunction · 0.64
TestSteamSecretFunction · 0.64