How to use the browserify-aes/decrypter.createDecipheriv function in browserify-aes

To help you get started, we’ve selected a few browserify-aes 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 web-push-libs / encrypted-content-encoding / nodejs / shim.js View on Github external
var semver = require('semver');
if (semver.satisfies(process.version, '>= 0.12.0')) {
  return;
}

require('buffer-compare-shim');
require('buffer-io-shim');
var crypto = require('crypto');
crypto.createECDH = require('create-ecdh');
crypto.createCipheriv = require('browserify-aes/encrypter').createCipheriv;
crypto.createDecipheriv = require('browserify-aes/decrypter').createDecipheriv;