Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

crypto digest node.js

async function __async() {
  const { createHash } = await import("crypto");

  const Hash = createHash("sha256");

  Hash.update("I Like Food");
  console.log(Hash.digest("hex"));
  // f38c7280297620b8d66ea54edb7f5681fd09ffd5cc0b5989be9f73bd97ecfc63
}
__async();
 
PREVIOUS NEXT
Tagged: #crypto #digest
ADD COMMENT
Topic
Name
3+2 =