//#region src/gateway/hono/lib/mask-secret-length.ts
/** Fallback mask when the real secret length is unknown (e.g. env-sourced keys). */
const GENERIC_MASKED_SECRET = "••••••••••••";
/** Length-preserving mask for secrets returned to the web console. */
function maskSecretLength(secret) {
	const trimmed = secret.trim();
	return trimmed ? "•".repeat(trimmed.length) : "";
}
/** True when a PATCH body carries a masked sentinel instead of a new secret. */
function isMaskedSecretPatchValue(value) {
	return value === "***" || value === "••••••••••••" || /^•+$/.test(value);
}
//#endregion
export { GENERIC_MASKED_SECRET, isMaskedSecretPatchValue, maskSecretLength };

//# sourceMappingURL=mask-secret-length.js.map