Why involve node stuff in the browser? (aka: node-forge)
can't you achieve the same thing using web crypto
I bet it have better performance (cuz it's native).
I also think you should be using readAsArrayBuffer and not readAsBinaryString.
The use of readAsArrayBuffer() is preferred over readAsBinaryString(), which is provided for backwards compatibility.
technically you could then just do blob.arrayBuffer() if you like promises... or new Response(blob).arrayBuffer() and screw the hole filereader
Why involve node stuff in the browser? (aka: node-forge)
can't you achieve the same thing using web crypto
I bet it have better performance (cuz it's native).
I also think you should be using readAsArrayBuffer and not readAsBinaryString.
technically you could then just do
blob.arrayBuffer()if you like promises... ornew Response(blob).arrayBuffer()and screw the hole filereader