Skip to content

Latest commit

 

History

History

crypto

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

crypto

Usage

import { crypto } from "https://deno.land/std@$STD_VERSION/crypto/mod.ts";

// This will delegate to the runtime's WebCrypto implementation.
console.log(
  await crypto.subtle.digest(
    "SHA-384",
    new TextEncoder().encode("hello world"),
  ),
);

// This will use a bundled WASM/Rust implementation.
console.log(
  await crypto.subtle.digest("BLAKE3", new TextEncoder().encode("hello world")),
);