An open API service indexing awesome lists of open source software.

https://github.com/panva/keyobject-to-cryptokey

Converts KeyObject instances to CryptoKey for use with a given JSON Web Algorithm
https://github.com/panva/keyobject-to-cryptokey

Last synced: 4 months ago
JSON representation

Converts KeyObject instances to CryptoKey for use with a given JSON Web Algorithm

Awesome Lists containing this project

README

          

# keyobject-to-cryptokey

Converts KeyObject instances to CryptoKey for use with a given JSON Web Algorithm

```ts
import { convert } from "keyobject-to-cryptokey";
let key!: crypto.KeyObject;
let alg!: string;

const cryptoKey = convert(key, alg);
```