UNPKG

284 BJavaScriptView Raw
1// Copyright (c) Microsoft Corporation.
2// Licensed under the MIT license.
3import { createHash } from "crypto";
4export async function digest(str) {
5 const hash = createHash("sha256");
6 hash.update(str, "utf8");
7 return hash.digest("hex");
8}
9//# sourceMappingURL=digest.js.map
\No newline at end of file