Encoding
Base64

🔠 Base64 encoding and decoding.

Syntax

import { base64 } from '@opentf/std';
 
base64: {
  encode: (input: string | Uint8Array) => string;
  decode: (input: string) => string;
}

Examples

base64.encode('hello') //=> 'aGVsbG8='
base64.decode('aGVsbG8=') //=> 'hello'

Related

Try