# Redact Secret

> Redact a secret (e.g. example -> e*****e).

- ID: `redact_secret`
- Type: Block
- Category: [Utilities](https://inventor.bot/docs/reference/blocks/utilities.md)

**Inputs**

| Name | Required | Description | Value |
| --- | --- | --- | --- |
| `secret` | yes | Secret to redact. | e.g. `"correcthorsebatterystaple"` |

**Outputs**

| Name | Description | Value |
| --- | --- | --- |
| `redacted_secret` | Redacted version of Secret. |  |

**Example**

```go
redactSecret := redact_secret(Args{secret: "correcthorsebatterystaple"})
send_text_message(Args{
	channel_id:      trigger.channel_id,
	message_content: "Redacted Secret: " + redactSecret.redacted_secret,
})
```