pssh-tools
Advanced tools
Comparing version 1.0.14-alpha1 to 1.0.14-alpha2
@@ -54,3 +54,3 @@ "use strict"; | ||
kid: kidBuffer.toString('base64'), | ||
key: keyBuffer.toString('base64'), | ||
key: swapEndian(keyBuffer.toString('hex')).toString('base64'), | ||
checksum | ||
@@ -160,3 +160,3 @@ }; | ||
const keyBuffer = Buffer.from(keyData, 'base64'); | ||
return keyBuffer.toString('hex'); | ||
return swapEndian(keyBuffer.toString('hex')).toString('hex'); | ||
}; | ||
@@ -174,3 +174,3 @@ exports.encodeKey = (keyPair, keySeed = '') => { | ||
kid: kidBuffer.toString('base64'), | ||
key: keyBuffer.toString('base64'), | ||
key: swapEndian(keyPair.key).toString('base64'), | ||
checksum | ||
@@ -177,0 +177,0 @@ }; |
{ | ||
"name": "pssh-tools", | ||
"version": "1.0.14-alpha1", | ||
"version": "1.0.14-alpha2", | ||
"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
48529