Public
Edited
Jan 24, 2023
1 star
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
webCryptoGenerateId = async (str) => {
const hashBuffer = await crypto.subtle.digest('SHA-1', new TextEncoder('utf-8').encode(str))
const hashArray = Array.from(new Uint8Array(hashBuffer))
return hashArray
.map((byte) => byte.toString(16).padStart(2, '0'))
.join('')
.slice(0, 16)
}
Insert cell
webCryptoGenerateId(manifestUrl)
Insert cell
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more