Skip to content
This repository was archived by the owner on Aug 11, 2021. It is now read-only.
This repository was archived by the owner on Aug 11, 2021. It is now read-only.

Downstream crypto modules wont work on insecure (http) sites #114

@andrewheadricke

Description

@andrewheadricke

I just realized that I cant use this module on HTTP hosted sites due to webcrypto restrictions on insecure sites.

There are plenty of custom hashing libraries that do work on HTTP, is it possible to add a fallback option in case crypto.subtle is not available?

Interestingly, Firefox works even on HTTP, but Brave does not. And in Brave, window.crypto exists, which is why the checks here https://github.com/multiformats/js-multihashing-async/blob/3fcbe427b10452f653f3d9219d295fdff9116984/src/sha.browser.js#L8 don't catch it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions