| import * as Effect from "../../../Effect.ts" | |
| /** @internal */ | |
| export const makeHashDigest = (original: string) => | |
| 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 | |
| } | |
| ) | |
Xet Storage Details
- Size:
- 446 Bytes
- Xet hash:
- abaef472a62674783b65ed8ae5384863df2baddd283a26a66be057713004f88e
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.