Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Base64

Helper methods to encode and decode Base64 strings.

Examples

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

Hierarchy

  • Base64

Index

Methods

Methods

Static decode

  • decode(data: string): string
  • Base64 decode a string.

    Parameters

    • data: string

      the string to decode

    Returns string

Static encode

  • encode(data: string): string
  • Base64 encode a string.

    Parameters

    • data: string

      the string to encode

    Returns string

Generated using TypeDoc