This commit is contained in:
2025-10-11 18:35:12 +08:00
parent dc5a7c311c
commit 8d581dc03c
8 changed files with 11 additions and 2 deletions

View File

@@ -81,6 +81,9 @@ func TestPasswordHash(t *testing.T) {
if PasswordVerify("wrongpassword", hash) {
t.Errorf("PasswordVerify() 应该验证失败,但验证成功了")
}
// 输出加密后的密码,便于人工检查
t.Logf("原始密码: %s, 加密后: %s", tc.password, hash)
})
}
}