Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
quarto-dev
GitHub Repository: quarto-dev/quarto-cli
Path: blob/main/src/core/api/crypto.ts
6458 views
1
// src/core/api/crypto.ts
2
3
import { globalRegistry } from "./registry.ts";
4
import type { CryptoNamespace } from "./types.ts";
5
6
// Import implementation
7
import { md5HashSync } from "../hash.ts";
8
9
// Register crypto namespace
10
globalRegistry.register("crypto", (): CryptoNamespace => {
11
return {
12
md5Hash: md5HashSync,
13
};
14
});
15
16