Files
girinb 485098cd1a link
2025-05-29 15:41:51 +09:00

7 lines
170 B
JavaScript

import { getCiphers } from 'crypto';
let ciphers;
export default (algorithm) => {
ciphers || (ciphers = new Set(getCiphers()));
return ciphers.has(algorithm);
};