Skip to content

use web crypto instead? #1

Description

@jimmywarting

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions