package agentd

import "github.com/wangjia/pangolin/server/internal/dpcred"

// DeriveHy2Password is an alias for dpcred.DeriveHy2Password kept here so
// existing callers within the agentd package compile without change.
// The canonical implementation lives in internal/dpcred so that both the node
// agent and the HTTP connect handler share the exact same derivation logic.
func DeriveHy2Password(dpUUID, key string) string {
	return dpcred.DeriveHy2Password(dpUUID, key)
}
