Crypto Lib
    Preparing search index...

    Function open

    • Decrypt and verify a sealed box produced by seal.

      Parameters

      • key: string | Uint8Array<ArrayBufferLike>
      • sealed: string | Uint8Array<ArrayBufferLike>
      • Optionalaad: Uint8Array<ArrayBufferLike>

      Returns Uint8Array

      If the key is wrong or the ciphertext has been tampered with.