Crypto Lib
    Preparing search index...
    • Decrypt a password-encrypted payload (format version 0x02, or legacy 0x01).

      Parameters

      • password: string | Uint8Array<ArrayBufferLike>
      • encrypted: string | Uint8Array<ArrayBufferLike>

      Returns Uint8Array

      If the password is wrong, the data has been tampered with, the version is unknown, or the header costs exceed the configured caps.