mirror of
https://github.com/hanzoai/jose.git
synced 2026-09-24 17:00:01 +00:00
9 lines
249 B
JavaScript
9 lines
249 B
JavaScript
import * as crypto from 'crypto';
|
|
import * as util from 'util';
|
|
const webcrypto = crypto.webcrypto;
|
|
export default webcrypto;
|
|
export const isCryptoKey = util.types.isCryptoKey
|
|
? (key) => util.types.isCryptoKey(key)
|
|
:
|
|
(key) => false;
|