New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

pssh-tools

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pssh-tools - npm Package Compare versions

Comparing version 1.0.2 to 1.0.4

3

dist/src/lib/pssh/playready.js

@@ -147,4 +147,5 @@ "use strict";

exports.encodeKey = (keyData) => {
const keyDataBuffer = Buffer.from(keyData, 'hex');
const keyBuffer = swapEndian(keyData);
const cipher = crypto.createCipheriv('aes-128-ecb', keyBuffer, '').setAutoPadding(false);
const cipher = crypto.createCipheriv('aes-128-ecb', keyDataBuffer, '').setAutoPadding(false);
const checksum = cipher.update(keyBuffer).slice(0, 8).toString('base64');

@@ -151,0 +152,0 @@ return {

@@ -221,3 +221,3 @@ "use strict";

};
const decodePRData = (psshData) => {
const decodePRData = (psshData, dataEncoding = 'utf8') => {
// pro header

@@ -235,3 +235,3 @@ let proHeader = Buffer.alloc(10);

recordType: proRecordType,
recordXml: proData.toString('ascii')
recordXml: proData.toString(dataEncoding)
};

@@ -238,0 +238,0 @@ };

{
"name": "pssh-tools",
"version": "1.0.2",
"version": "1.0.4",
"description": "Tools to generate PSSH Data and PSSH Box",

@@ -5,0 +5,0 @@ "main": "dist/src/index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc