---
editLink: false
lastUpdated: false
---

[@salesforce/b2c-tooling-sdk](../../modules.md) / [config](../index.md) / maskConfigValue

# Function: maskConfigValue()

> **maskConfigValue**(`value`): `string`

Defined in: [packages/b2c-tooling-sdk/src/config/redaction.ts:45](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/eee4a3582430c731fadd77072888a1468c2fe25b/packages/b2c-tooling-sdk/src/config/redaction.ts#L45)

Mask a sensitive value, showing the first 4 characters when long enough to
aid identification without disclosing the secret. Matches the convention
used by the SDK logger (`<first4>...REDACTED`).

## Parameters

### value

`string`

The raw value to mask

## Returns

`string`

The masked representation
