MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / TestLegacy

Function TestLegacy

pkg/auth/password_test.go:68–75  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

66}
67
68func TestLegacy(t *testing.T) {
69 a := assertions.New(t)
70
71 // this is a pair generated by django
72 ok, err := Validate("pbkdf2$sha256$30000$salt$4v3K66vbKbwv3vnwnf32hdzoK8O03GOiBcWFNHul9bo", "secret")
73 a.So(err, should.BeNil)
74 a.So(ok, should.BeTrue)
75}

Callers

nothing calls this directly

Calls 2

ValidateFunction · 0.85
NewMethod · 0.65

Tested by

no test coverage detected