Erster Commit

This commit is contained in:
2026-08-22 08:40:29 +02:00
commit 875477d425
1961 changed files with 930336 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
async function digest(data) {
var _a;
if ((_a = globalThis.crypto) == null ? void 0 : _a.subtle) {
const encoder = new TextEncoder();
return crypto.subtle.digest("SHA-256", encoder.encode(data));
} else {
const nodeCrypto = await import("node:crypto");
return nodeCrypto.createHash("sha256").update(data).digest();
}
}
export {
digest
};
//# sourceMappingURL=digest.js.map