Skip to main content
getHashes - crypto - Node documentation
function getHashes

Usage in Deno

import { getHashes } from "node:crypto";
getHashes(): string[]
const {
  getHashes,
} = await import('node:crypto');

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

Return Type

string[]

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