Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

Functions

  • decode(s: string): Uint8Array
  • Decode a base64-encoded string and return a Uint8Array.

    example
    const signatureData = Base64.decode('IHhJwlD7P-o6x7L38den1MnumUhnYmNhTZhIUQQhezvEMf7rx89NbIIioNCIQSk1PQYdQ9mOI4-rDYiwO2pLvM4=');
    

    Parameters

    • s: string

      Base64 encoded string.

    Returns Uint8Array

  • encode(bytes: Uint8Array): string
  • Encode Uint8Array as a base64 string.

    example
    const base64encodedStr = Base64.encode('Hello world!');
    

    Parameters

    • bytes: Uint8Array

      Byte array of type Uint8Array.

    Returns string

Generated using TypeDoc