-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
687 additions
and
729 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
# iron-webcrypto (beta) [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue?style=flat-square)](https://www.jsdocs.io/package/iron-webcrypto) [![downloads](https://img.shields.io/npm/dm/iron-webcrypto?style=flat-square)](https://www.npmjs.com/package/iron-webcrypto) [![npm](https://img.shields.io/npm/v/iron-webcrypto?style=flat-square)](https://www.npmjs.com/package/iron-webcrypto) [![deno](https://img.shields.io/badge/[email protected]?style=flat-square)](https://deno.land/x/[email protected]/mod.ts) | ||
|
||
This module is a replacement for [`@hapi/iron`](https://hapi.dev/module/iron/), | ||
written using standard APIs like Web Crypto and Uint8Array, which make this | ||
compatible with a variety of runtimes like Node.js, Deno, Bun, browsers, | ||
workers, and edge environments. Refer `@hapi/iron`'s docs on what it does and | ||
how it works. | ||
This module is a replacement for `@hapi/iron`, written using standard APIs like | ||
Web Crypto and Uint8Array, which make this compatible with a variety of runtimes | ||
like Node.js, Deno, Bun, browsers, workers, and edge environments. Refer | ||
`@hapi/iron`'s docs on what it does and how it works. | ||
|
||
> Check out [**unjs/h3**](https://github.com/unjs/h3) and | ||
> [**vvo/iron-session**](https://github.com/vvo/iron-session) to see this module | ||
|
@@ -35,7 +34,8 @@ import * as Iron from 'https://deno.land/x/[email protected]/mod.ts' | |
|
||
## Usage | ||
|
||
Refer `@hapi/iron`'s docs. There are certain differences. | ||
Refer [`@hapi/iron`'s docs](https://hapi.dev/module/iron/). There are certain | ||
differences. | ||
|
||
You need to pass a Web Crypto implementation as the first parameter to each | ||
function. For example: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.