GHHG10's picture
download
raw
290 Bytes
import { timingSafeEqual } from "node:crypto"
export function safeEqual(a: string, b: string): boolean {
const encoder = new TextEncoder()
const aBytes = encoder.encode(a)
const bBytes = encoder.encode(b)
return aBytes.length === bBytes.length && timingSafeEqual(aBytes, bBytes)
}

Xet Storage Details

Size:
290 Bytes
·
Xet hash:
19fecaf830f7dbbc1bc40c937b7c7cc91aa99e52afab45c80a683e5e871d3a61

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