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;
|