MCPcopy Create free account
hub / github.com/Driver-C/tryssh / TestDeriveKey_DifferentPasswords

Function TestDeriveKey_DifferentPasswords

pkg/utils/crypto_test.go:267–275  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

265}
266
267func TestDeriveKey_DifferentPasswords(t *testing.T) {
268 key1, err := deriveKey([]byte("password1"))
269 require.NoError(t, err)
270
271 key2, err := deriveKey([]byte("password2"))
272 require.NoError(t, err)
273
274 assert.NotEqual(t, key1, key2)
275}
276
277func TestDeriveKey_MinLength(t *testing.T) {
278 // Exactly 4 characters should work

Callers

nothing calls this directly

Calls 1

deriveKeyFunction · 0.85

Tested by

no test coverage detected