ciphers.js 170 B

123456
  1. import { getCiphers } from 'crypto';
  2. let ciphers;
  3. export default (algorithm) => {
  4. ciphers || (ciphers = new Set(getCiphers()));
  5. return ciphers.has(algorithm);
  6. };