mirror of
https://github.com/danbulant/jose
synced 2026-05-21 21:39:04 +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);
|
|
};
|