当前位置: 首页>>代码示例 >>用法及示例精选 >>正文


Node.js crypto.getCiphers()用法及代码示例


crypto.getCiphers()

添加于:v0.9.3
  • 返回: <string[]> 具有受支持密码算法名称的数组。
const {
  getCiphers
} = await import('node:crypto');

console.log(getCiphers()); // ['aes-128-cbc', 'aes-128-ccm', ...]const {
  getCiphers,
} = require('node:crypto');

console.log(getCiphers()); // ['aes-128-cbc', 'aes-128-ccm', ...]

相关用法


注:本文由纯净天空筛选整理自nodejs.org大神的英文原创作品 crypto.getCiphers()。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。