fixing small issues
This commit is contained in:
parent
c4b7a2bd97
commit
6aa79472bf
6 changed files with 10 additions and 14 deletions
|
@ -72,8 +72,7 @@ class FileSender extends EventEmitter {
|
|||
},
|
||||
secretKey,
|
||||
file.plaintext
|
||||
)
|
||||
.catch(err => console.log('Error with encrypting.')),
|
||||
),
|
||||
window.crypto.subtle.exportKey('jwk', secretKey),
|
||||
new Promise((resolve, reject) => { resolve(file.hash) })
|
||||
]);
|
||||
|
@ -114,7 +113,7 @@ class FileSender extends EventEmitter {
|
|||
'X-File-Metadata',
|
||||
JSON.stringify({
|
||||
aad: arrayToHex(hash),
|
||||
iv: fileId,
|
||||
id: fileId,
|
||||
filename: file.name
|
||||
})
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue