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