EdgeAIG's picture
download
raw
431 Bytes
import * as Effect from "../../../Effect.js";
/** @internal */
export const makeHashDigest = original => Effect.map(Effect.promise(() => crypto.subtle.digest("SHA-256", new TextEncoder().encode(original))), buffer => {
const data = new Uint8Array(buffer);
let hexString = "";
for (let i = 0; i < 16; i++) {
hexString += data[i].toString(16).padStart(2, "0");
}
return hexString;
});
//# sourceMappingURL=crypto.js.map

Xet Storage Details

Size:
431 Bytes
·
Xet hash:
7aebd36b79b0c8c3d70eb107b8b24e9c78f017b748a4a44cc43706eba1f4ec9f

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.