This commit is contained in:
Adhiraj
2020-05-31 22:59:06 +05:30
parent 117828ebd8
commit f24f83331c
3 changed files with 3 additions and 2 deletions

BIN
.DS_Store vendored

Binary file not shown.

View File

@@ -230,7 +230,8 @@ module.exports = {
const macKey = mediaKeys.macKey
// download the message
const buffer = await fetch(message.url).buffer()
const fetched = await fetch(message.url)
const buffer = await fetched.buffer()
// first part is actual file
let file = buffer.slice(0, buffer.length-10)
// last 10 bytes is HMAC sign of file

View File

@@ -19,7 +19,7 @@
"test": "node test.js"
},
"author": "Adhiraj Singh",
"license": "ISC",
"license": "MIT",
"dependencies": {
"curve25519-js": "0.0.4",
"futoin-hkdf": "^1.3.2",