1.2.0 • Published 7 months ago

@acusti/webcrypto v1.2.0

Weekly downloads
-
License
Unlicense
Repository
github
Last release
7 months ago

@acusti/webcrypto

latest version downloads per month bundle size supply chain security

webcrypto exports window.crypto / self.crypto for use in a browser environment (regular or worker) and the equivalent of require('node:crypto').webcrypto for use in node.js. When used in node, it requires node.js v15.0.0 or later.

Usage

npm install @acusti/webcrypto
# or
yarn add @acusti/webcrypto
import webcrypto from '@acusti/webcrypto';

const uuid = webcrypto.randomUUID();

const data = new TextEncoder().encode('data to hash');
const digest = await webcrypto.subtle.digest({ name: 'SHA-256' }, data);
1.2.0

7 months ago

1.1.0

11 months ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

3 years ago

0.2.0

3 years ago

0.1.0

3 years ago