| import { createHash } from 'node:crypto'; | |
| function md5(bytes) { | |
| if (Array.isArray(bytes)) { | |
| bytes = Buffer.from(bytes); | |
| } | |
| else if (typeof bytes === 'string') { | |
| bytes = Buffer.from(bytes, 'utf8'); | |
| } | |
| return createHash('md5').update(bytes).digest(); | |
| } | |
| export default md5; | |
Xet Storage Details
- Size:
- 305 Bytes
- Xet hash:
- 626f34f603b418f5b557dddd12aa34a165434222a842206fdf9c687ed878e613
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.