Socket
Socket
Sign inDemoInstall

aes-decrypter

Package Overview
Dependencies
9
Maintainers
6
Versions
19
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.1-1 to 3.0.1

13

CHANGELOG.md

@@ -0,1 +1,14 @@

<a name="3.0.1"></a>
## [3.0.1](https://github.com/videojs/aes-decrypter/compare/v3.0.0...v3.0.1) (2019-08-21)
### Chores
* **package:** update rollup to version 0.66.0 ([#38](https://github.com/videojs/aes-decrypter/issues/38)) ([634556b](https://github.com/videojs/aes-decrypter/commit/634556b))
* bump videojs-generate-karma-config version ([#51](https://github.com/videojs/aes-decrypter/issues/51)) ([195b923](https://github.com/videojs/aes-decrypter/commit/195b923))
* **package:** update videojs-generate-karma-config to version 5.0.2 ([#57](https://github.com/videojs/aes-decrypter/issues/57)) ([be8bd81](https://github.com/videojs/aes-decrypter/commit/be8bd81))
* update generator version and use [@videojs](https://github.com/videojs)/vhs-utils ([#68](https://github.com/videojs/aes-decrypter/issues/68)) ([9a6ab2f](https://github.com/videojs/aes-decrypter/commit/9a6ab2f))
* Update to generator v7 standards ([#37](https://github.com/videojs/aes-decrypter/issues/37)) ([fcf96c4](https://github.com/videojs/aes-decrypter/commit/fcf96c4))
* Update videojs-generate-karma-config to the latest version 🚀 ([#42](https://github.com/videojs/aes-decrypter/issues/42)) ([2b16de3](https://github.com/videojs/aes-decrypter/commit/2b16de3))
* Update videojs-generate-karma-config to the latest version 🚀 ([#43](https://github.com/videojs/aes-decrypter/issues/43)) ([cb63ccd](https://github.com/videojs/aes-decrypter/commit/cb63ccd))
<a name="3.0.0"></a>

@@ -2,0 +15,0 @@ # [3.0.0](https://github.com/videojs/aes-decrypter/compare/v2.0.0...v3.0.0) (2017-07-24)

4

dist/aes-decrypter.cjs.js

@@ -1,2 +0,2 @@

/*! @name aes-decrypter @version 3.0.1-1 @license Apache-2.0 */
/*! @name aes-decrypter @version 3.0.1 @license Apache-2.0 */
'use strict';

@@ -10,3 +10,3 @@

var _inheritsLoose = _interopDefault(require('@babel/runtime/helpers/inheritsLoose'));
var Stream = _interopDefault(require('@videojs/vhs-utils/dist/stream.es.js'));
var Stream = _interopDefault(require('@videojs/vhs-utils/dist/stream.js'));
var pkcs7 = require('pkcs7');

@@ -13,0 +13,0 @@

@@ -1,5 +0,5 @@

/*! @name aes-decrypter @version 3.0.1-1 @license Apache-2.0 */
/*! @name aes-decrypter @version 3.0.1 @license Apache-2.0 */
import _createClass from '@babel/runtime/helpers/createClass';
import _inheritsLoose from '@babel/runtime/helpers/inheritsLoose';
import Stream from '@videojs/vhs-utils/dist/stream.es.js';
import Stream from '@videojs/vhs-utils/dist/stream.js';
import { unpad } from 'pkcs7';

@@ -6,0 +6,0 @@

@@ -1,2 +0,2 @@

/*! @name aes-decrypter @version 3.0.1-1 @license Apache-2.0 */
/*! @name aes-decrypter @version 3.0.1 @license Apache-2.0 */
(function (global, factory) {

@@ -265,3 +265,4 @@ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :

/*! @name @videojs/vhs-utils @version 0.0.0 @license MIT */
/*! @name @videojs/vhs-utils @version 1.0.0 @license MIT */
/**

@@ -389,2 +390,4 @@ * @file stream.js

var stream = Stream;
/**

@@ -406,3 +409,3 @@ * A wrapper around the Stream class to use setTimeout

_this = _Stream.call(this, Stream) || this;
_this = _Stream.call(this, stream) || this;
_this.jobs = [];

@@ -447,5 +450,5 @@ _this.delay = 1;

return AsyncStream;
}(Stream);
}(stream);
/*! @name pkcs7 @version 1.0.3-1 @license Apache-2.0 */
/*! @name pkcs7 @version 1.0.3 @license Apache-2.0 */

@@ -452,0 +455,0 @@ /**

@@ -1,5 +0,5 @@

/*! @name aes-decrypter @version 3.0.1-1 @license Apache-2.0 */
/*! @name aes-decrypter @version 3.0.1 @license Apache-2.0 */
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).aesDecrypter={})}(this,function(t){"use strict";function e(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var r=function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t},n=function(){var t,e,r,n,i,s,o,u,c=[[[],[],[],[],[]],[[],[],[],[],[]]],l=c[0],f=c[1],a=l[4],h=f[4],y=[],p=[];for(t=0;t<256;t++)p[(y[t]=t<<1^283*(t>>7))^t]=t;for(e=r=0;!a[e];e^=n||1,r=p[r]||1)for(s=(s=r^r<<1^r<<2^r<<3^r<<4)>>8^255&s^99,a[e]=s,h[s]=e,u=16843009*y[i=y[n=y[e]]]^65537*i^257*n^16843008*e,o=257*y[s]^16843008*s,t=0;t<4;t++)l[t][e]=o=o<<24^o>>>8,f[t][s]=u=u<<24^u>>>8;for(t=0;t<5;t++)l[t]=l[t].slice(0),f[t]=f[t].slice(0);return c},i=null,s=function(){function t(t){var e,r,s;i||(i=n()),this._tables=[[i[0][0].slice(),i[0][1].slice(),i[0][2].slice(),i[0][3].slice(),i[0][4].slice()],[i[1][0].slice(),i[1][1].slice(),i[1][2].slice(),i[1][3].slice(),i[1][4].slice()]];var o=this._tables[0][4],u=this._tables[1],c=t.length,l=1;if(4!==c&&6!==c&&8!==c)throw new Error("Invalid aes key size");var f=t.slice(0),a=[];for(this._key=[f,a],e=c;e<4*c+28;e++)s=f[e-1],(e%c==0||8===c&&e%c==4)&&(s=o[s>>>24]<<24^o[s>>16&255]<<16^o[s>>8&255]<<8^o[255&s],e%c==0&&(s=s<<8^s>>>24^l<<24,l=l<<1^283*(l>>7))),f[e]=f[e-c]^s;for(r=0;e;r++,e--)s=f[3&r?e:e-4],a[r]=e<=4||r<4?s:u[0][o[s>>>24]]^u[1][o[s>>16&255]]^u[2][o[s>>8&255]]^u[3][o[255&s]]}return t.prototype.decrypt=function(t,e,r,n,i,s){var o,u,c,l,f=this._key[1],a=t^f[0],h=n^f[1],y=r^f[2],p=e^f[3],b=f.length/4-2,_=4,d=this._tables[1],v=d[0],g=d[1],m=d[2],w=d[3],A=d[4];for(l=0;l<b;l++)o=v[a>>>24]^g[h>>16&255]^m[y>>8&255]^w[255&p]^f[_],u=v[h>>>24]^g[y>>16&255]^m[p>>8&255]^w[255&a]^f[_+1],c=v[y>>>24]^g[p>>16&255]^m[a>>8&255]^w[255&h]^f[_+2],p=v[p>>>24]^g[a>>16&255]^m[h>>8&255]^w[255&y]^f[_+3],_+=4,a=o,h=u,y=c;for(l=0;l<4;l++)i[(3&-l)+s]=A[a>>>24]<<24^A[h>>16&255]<<16^A[y>>8&255]<<8^A[255&p]^f[_++],o=a,a=h,h=y,y=p,p=o},t}();var o=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e},u=function(){function t(){this.listeners={}}var e=t.prototype;return e.on=function(t,e){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push(e)},e.off=function(t,e){if(!this.listeners[t])return!1;var r=this.listeners[t].indexOf(e);return this.listeners[t]=this.listeners[t].slice(0),this.listeners[t].splice(r,1),r>-1},e.trigger=function(t){var e=this.listeners[t];if(e)if(2===arguments.length)for(var r=e.length,n=0;n<r;++n)e[n].call(this,arguments[1]);else for(var i=Array.prototype.slice.call(arguments,1),s=e.length,o=0;o<s;++o)e[o].apply(this,i)},e.dispose=function(){this.listeners={}},e.pipe=function(t){this.on("data",function(e){t.push(e)})},t}(),c=function(t){function e(){var e;return(e=t.call(this,u)||this).jobs=[],e.delay=1,e.timeout_=null,e}o(e,t);var r=e.prototype;return r.processJob_=function(){this.jobs.shift()(),this.jobs.length?this.timeout_=setTimeout(this.processJob_.bind(this),this.delay):this.timeout_=null},r.push=function(t){this.jobs.push(t),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))},e}(u);
/*! @name @videojs/vhs-utils @version 0.0.0 @license MIT */var l=function(t){return t<<24|(65280&t)<<8|(16711680&t)>>8|t>>>24},f=function(t,e,r){var n,i,o,u,c,f,a,h,y,p=new Int32Array(t.buffer,t.byteOffset,t.byteLength>>2),b=new s(Array.prototype.slice.call(e)),_=new Uint8Array(t.byteLength),d=new Int32Array(_.buffer);for(n=r[0],i=r[1],o=r[2],u=r[3],y=0;y<p.length;y+=4)c=l(p[y]),f=l(p[y+1]),a=l(p[y+2]),h=l(p[y+3]),b.decrypt(c,f,a,h,d,y),d[y]=l(d[y]^n),d[y+1]=l(d[y+1]^i),d[y+2]=l(d[y+2]^o),d[y+3]=l(d[y+3]^u),n=c,i=f,o=a,u=h;return _},a=function(){function t(e,r,n,i){var s=t.STEP,o=new Int32Array(e.buffer),u=new Uint8Array(e.byteLength),f=0;for(this.asyncStream_=new c,this.asyncStream_.push(this.decryptChunk_(o.subarray(f,f+s),r,n,u)),f=s;f<o.length;f+=s)n=new Uint32Array([l(o[f-4]),l(o[f-3]),l(o[f-2]),l(o[f-1])]),this.asyncStream_.push(this.decryptChunk_(o.subarray(f,f+s),r,n,u));this.asyncStream_.push(function(){
/*! @name pkcs7 @version 1.0.3-1 @license Apache-2.0 */
/*! @name @videojs/vhs-utils @version 1.0.0 @license MIT */var l=function(t){return t<<24|(65280&t)<<8|(16711680&t)>>8|t>>>24},f=function(t,e,r){var n,i,o,u,c,f,a,h,y,p=new Int32Array(t.buffer,t.byteOffset,t.byteLength>>2),b=new s(Array.prototype.slice.call(e)),_=new Uint8Array(t.byteLength),d=new Int32Array(_.buffer);for(n=r[0],i=r[1],o=r[2],u=r[3],y=0;y<p.length;y+=4)c=l(p[y]),f=l(p[y+1]),a=l(p[y+2]),h=l(p[y+3]),b.decrypt(c,f,a,h,d,y),d[y]=l(d[y]^n),d[y+1]=l(d[y+1]^i),d[y+2]=l(d[y+2]^o),d[y+3]=l(d[y+3]^u),n=c,i=f,o=a,u=h;return _},a=function(){function t(e,r,n,i){var s=t.STEP,o=new Int32Array(e.buffer),u=new Uint8Array(e.byteLength),f=0;for(this.asyncStream_=new c,this.asyncStream_.push(this.decryptChunk_(o.subarray(f,f+s),r,n,u)),f=s;f<o.length;f+=s)n=new Uint32Array([l(o[f-4]),l(o[f-3]),l(o[f-2]),l(o[f-1])]),this.asyncStream_.push(this.decryptChunk_(o.subarray(f,f+s),r,n,u));this.asyncStream_.push(function(){
/*! @name pkcs7 @version 1.0.3 @license Apache-2.0 */
var t;i(null,(t=u).subarray(0,t.byteLength-t[t.byteLength-1]))})}return t.prototype.decryptChunk_=function(t,e,r,n){return function(){var i=f(t,e,r);n.set(i,t.byteOffset)}},r(t,null,[{key:"STEP",get:function(){return 32e3}}]),t}();t.AsyncStream=c,t.Decrypter=a,t.decrypt=f,Object.defineProperty(t,"__esModule",{value:!0})});
{
"name": "aes-decrypter",
"version": "3.0.1-1",
"version": "3.0.1",
"description": "decrypt aes-128 content using a key",

@@ -51,5 +51,5 @@ "main": "dist/aes-decrypter.cjs.js",

"@babel/runtime": "^7.5.5",
"@videojs/vhs-utils": "github:videojs/vhs-utils#force-dist",
"@videojs/vhs-utils": "^1.0.0",
"global": "^4.3.2",
"pkcs7": "^1.0.3-1"
"pkcs7": "^1.0.3"
},

@@ -60,6 +60,5 @@ "devDependencies": {

"karma": "^4.0.0",
"postcss-cli": "^6.0.0",
"sinon": "^7.2.2",
"videojs-generate-karma-config": "~5.3.0",
"videojs-generator-verify": "~1.2.0",
"videojs-generate-karma-config": "~5.3.1",
"videojs-generator-verify": "~2.0.0",
"videojs-generate-rollup-config": "~5.0.1",

@@ -69,3 +68,3 @@ "videojs-standard": "^8.0.3"

"generator-videojs-plugin": {
"version": "7.7.0"
"version": "7.7.3"
},

@@ -72,0 +71,0 @@ "directories": {

/**
* @file async-stream.js
*/
import Stream from '@videojs/vhs-utils/dist/stream.es.js';
import Stream from '@videojs/vhs-utils/dist/stream.js';

@@ -6,0 +6,0 @@ /**

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc