Skip to content

Support Web Crypto API to enable async hashing #123

Open
@thernstig

Description

https://nodejs.org/api/webcrypto.html supports async hash functions. Meaning that if this libs implements an async function like:

import hash from 'object-hash';

await hash({foo: 'bar'}) // => '67b69634f9880a282c14a0f0cb7ba20cf5d677e9'

Then users could use async functionality for this.

So the async version should be made clear to depend on Node.js and browsers supporting globalThis.crypto.

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