Menu

This is documentation for the next version of Alloy. For the latest stable release, go to the latest 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!"