@me2em/crypto
    Preparing search index...

    Function fromBase64

    • Decodes a standard Base64 string to a Uint8Array.

      Parameters

      • s: string

        The Base64-encoded string.

      Returns Uint8Array

      The decoded byte array.

      If the string is not valid Base64.

      const bytes = fromBase64('3q2+7w==');
      // Uint8Array [ 0xde, 0xad, 0xbe, 0xef ]