How to use aes-decrypter - 1 common examples

To help you get started, we’ve selected a few aes-decrypter examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github videojs / http-streaming / src / decrypter-worker.js View on Github external
data.encrypted.byteOffset,
      data.encrypted.byteLength
    );
    const key = new Uint32Array(
      data.key.bytes,
      data.key.byteOffset,
      data.key.byteLength / 4
    );
    const iv = new Uint32Array(
      data.iv.bytes,
      data.iv.byteOffset,
      data.iv.byteLength / 4
    );

    /* eslint-disable no-new, handle-callback-err */
    new Decrypter(
      encrypted,
      key,
      iv,
      function(err, bytes) {
        self.postMessage(createTransferableMessage({
          source: data.source,
          decrypted: bytes
        }), [bytes.buffer]);
      }
    );
    /* eslint-enable */
  };
};

aes-decrypter

decrypt aes-128 content using a key

Apache-2.0
Latest version published 2 years ago

Package Health Score

56 / 100
Full package analysis

Popular aes-decrypter functions