Files
2026-08-22 08:40:29 +02:00

7 lines
164 B
JavaScript

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