convert

Important: This documentation is about an older version. It's relevant only to the release noted, many of the features and functions have been updated or replaced. Please view the current version.

Open source

convert

The convert namespace contains conversion functions.

nonsensitive

convert.nonsensitive converts a secret value back into a string.

Warning

Only use convert.nonsensitive when you are positive that the value converted back to a string isn’t a sensitive value.

Strings resulting from calls to convert.nonsensitive are displayed in plain text in the UI and internal API calls.

Examples

alloy
// Assuming `sensitive_value` is a secret:

> sensitive_value
(secret)
> convert.nonsensitive(sensitive_value)
"Hello, world!"