known_message=newTextEncoder().encode("The only one who knows this ounce of words is just a token, is he who has a ton to tell that must remain unspoken.")
signature=awaitwindow.crypto.subtle.sign(
"RSASSA-PKCS1-v1_5",
keyPair2.privateKey,
known_message
)
result=awaitwindow.crypto.subtle.verify(
"RSASSA-PKCS1-v1_5",
keyPair2.publicKey,
_base64ToArrayBuffer(signature_as_text),// (demonstrates conversion -- see below)
known_message
)
newUint8Array(signature)
md`## Converting between ArrayBuffer and string (for embedding in JSON)`
_base64ToArrayBuffer(signature_as_text),// (demonstrates conversion -- see below)
known_message
)
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.