webcrypto.js 249 B

12345678
  1. import * as crypto from 'crypto';
  2. import * as util from 'util';
  3. const webcrypto = crypto.webcrypto;
  4. export default webcrypto;
  5. export const isCryptoKey = util.types.isCryptoKey
  6. ? (key) => util.types.isCryptoKey(key)
  7. :
  8. (key) => false;