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

Function TestVerifyBadSalt

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

Source from the content-addressed store, hash-verified

335 }
336}
337func TestVerifyBadSalt(t *testing.T) {
338 err := Verify("password", "mast3rpassphrase", "secBoxv1$0$Qk09Tgzi2w+z9mtPiwe6uLWPXMY8WQyI3oC7Sqz11PMcRzvqrOhd70fdBXEUmOeM91z2MytB9Lt4VQzjOs21KTYqMx9FwUR2qDa38fmQhT6pLOJCaptpMzgYLC1fvbq4suuW9XpB7RE=$2ZVbHyy/p9Q=$32768$16$1$16384$8$1")
339 if err == nil {
340 t.Log(err)
341 t.FailNow()
342 }
343}
344func TestValidateParams(t *testing.T) {
345 // This should pass
346 err := validateParams(ScryptParams{N: 65536, R: 32, P: 2})

Callers

nothing calls this directly

Calls 1

VerifyFunction · 0.85

Tested by

no test coverage detected