Skip to content

Instantly share code, notes, and snippets.

View grempe's full-sized avatar
🚀
Coding like crazy.

Glenn Rempe grempe

🚀
Coding like crazy.
View GitHub Profile
@bcnzer
bcnzer / cloudflareworker-verifyjwt.js
Last active July 2, 2024 10:18
Sample Cloudflare worker that gets the JWT, ensures it hasn't expired, decrypts it and returns a result
addEventListener('fetch', event => {
event.respondWith(handleRequest(event.request))
})
// Following code is a modified version of that found at https://blog.cloudflare.com/dronedeploy-and-cloudflare-workers/
/**
* Fetch and log a request
* @param {Request} request
*/
A challenge.
Prove that a file or hash uploaded to stamp.io, and the certificate page that stamp.io provides, can
be used to unequivocally, deterministically, and mathematically prove that the file existed
on or before the timestamp in the certificate.
The answer code:
Sample code in pure javascript, executed with node, using the current stampery NPM package installed from npmjs.org.
All dependencies should be only an 'npm install' away and run with e.g. 'npm test'.