Skip to main content
The Deno 2 Release Candidate is here
Learn more
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
method crypto.DigestContext.prototype.clone
import { crypto } from "https://deno.land/std@0.105.0/_wasm_crypto/mod.ts";
const { DigestContext } = crypto;

Returns a new DigestContext that is a copy of this one, i.e., using the same algorithm and with a copy of the same internal state.

This may be a more efficient option for computing multiple digests that start with a common prefix.