Drafts Script Reference
    Preparing search index...

    Class Base64

    Helper methods to encode and decode Base64 strings.

    let s = "My String";
    let encoded = Base64.encode(s);
    let decoded = Base64.decode(encoded);
    Index

    Methods

    Methods

    • Base64 decode a string.

      Parameters

      • data: string

        the string to decode

      Returns string

    • Base64 encode a string.

      Parameters

      • data: string

        the string to encode

      Returns string