Crypto Lib
    Preparing search index...

    Class ChunkEncryptor

    Encrypts a stream chunk by chunk as plaintext arrives. A chunk is sealed once more plaintext follows it, so it is known not to be the last; the last is sealed FINAL by ChunkEncryptor.finish. The output is the same, byte for byte, however the plaintext is split.

    Index
    • Adds plaintext; returns the chunks it completes.

      Parameters

      • plaintext: Uint8Array

      Returns Uint8Array<ArrayBufferLike>[]