EdgeAIG's picture
download
raw
308 Bytes
import { createHash } from 'node: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:
308 Bytes
·
Xet hash:
a2a40968809333aea5dac6b865857b07c8b507f78fc86277f770468ba8d3085b

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