mirror of
https://github.com/danbulant/jose
synced 2026-05-22 13:58:47 +00:00
6 lines
170 B
JavaScript
6 lines
170 B
JavaScript
import { getCiphers } from 'crypto';
|
|
let ciphers;
|
|
export default (algorithm) => {
|
|
ciphers || (ciphers = new Set(getCiphers()));
|
|
return ciphers.has(algorithm);
|
|
};
|