Redact Secret

BlockUtilities

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

Inputs

SecretRequired

Secret to redact.

Example: correcthorsebatterystaple

Outputs

Redacted Secret

Redacted version of Secret.

Build a bot using blocks like Redact Secret

Use this block in our visual flow editor. Bots are hosted 24/7 for free on inventor.bot.

Advanced Documentation

This documentation can be useful when using code mode. View as Markdown

ID: redact_secret

Inputs

FieldInventScript nameValue
Secretsecrete.g. "correcthorsebatterystaple"

Outputs

FieldInventScript nameValue
Redacted Secretredacted_secret

Example InventScript

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

More utilities blocks