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