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