Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Function |base64

std/secret::|base64


Usage

|base64(secret, name)

Parameters

↳ secret: Secret<string>
↳ name: string

Return

↴ Secret<string>


Secret made of the base64 encoding (standard, padded) of a string secret, computed when revealed.

Such as the credentials of HTTP Basic authentication: |base64(|format("{user}:{password}", ...), ...).