Link Search Menu Expand Document

Random

Table of contents

  1. Base64
    1. Base64.encode(string)
    2. Base64.decode(string)

Base64

To make use of the Base64 module an import is required.

import Base64;

Base64.encode(string)

Base64 encode a given string.

Base64.encode("test"); // 'dGVzdA=='

Base64.decode(string)

Base64 decode a given string.

Base64.decode("dGVzdA=="); // 'test'

This site uses Just The Docs, with modifications.