2024-06-15 00:55:43 +03:00

7 lines
164 B
JavaScript

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