當前位置: 首頁>>編程示例 >>用法及示例精選 >>正文


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()。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。