Skip to main content

getHashes

function getHashes
Jump to headinggetHashes(): string[]
const {
  getHashes,
} = await import('node:crypto');

console.log(getHashes()); // ['DSA', 'DSA-SHA', 'DSA-SHA1', ...]

Return Type Jump to heading

string[]

An array of the names of the supported hash algorithms, such as 'RSA-SHA256'. Hash algorithms are also called "digest" algorithms.

Back to top