MCPcopy Create free account
hub / github.com/dwin/goSecretBoxPassword / TestVerifyBadPassphrase

Function TestVerifyBadPassphrase

password_test.go:323–329  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

321 }
322}
323func TestVerifyBadPassphrase(t *testing.T) {
324 err := Verify("passw0rd", "masterpassphrase", "secBoxv1$0$Qk09Tgzi2w+z9mtPiwe6uLWPXMY8WQyI3oC7Sqz11PMcRzvqrOhd70fdBXEUmOeM91z2MytB9Lt4VQzjOs21KTYqMx9FwUR2qDa38fmQhT6pLOJCaptpMzgYLC1fvbq4suuW9XpB7RE=$2ZVcHyy/p9Q=$32768$16$1$16384$8$1")
325 if err == nil {
326 t.Log(err)
327 t.FailNow()
328 }
329}
330func TestVerifyBadMasterPass(t *testing.T) {
331 err := Verify("password", "mast3rpassphrase", "secBoxv1$0$Qk09Tgzi2w+z9mtPiwe6uLWPXMY8WQyI3oC7Sqz11PMcRzvqrOhd70fdBXEUmOeM91z2MytB9Lt4VQzjOs21KTYqMx9FwUR2qDa38fmQhT6pLOJCaptpMzgYLC1fvbq4suuW9XpB7RE=$2ZVcHyy/p9Q=$32768$16$1$16384$8$1")
332 if err == nil {

Callers

nothing calls this directly

Calls 1

VerifyFunction · 0.85

Tested by

no test coverage detected