Skip to content

mailoxy/one-time-secret-worker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

One-Time-Secret service (based on CloudFlare Workers/KV/Pages)

Simple Cloudflare Worker API for a One-Time-Secret service. This service allows to generate a secret, retrieve it once and then it gets deleted from the server. It receives an encrypted secret from the client, stores it in the Cloudflare KV, and responds with a unique key for retrieving the secret. Retrieving the secret can be done only once. On second attempt, the secret would have been deleted.

See also https://github.com/mailoxy/one-time-secret-web

Initialize KV store

wrangler kv:namespace create SECRET_STORE
wrangler kv:namespace create SECRET_STORE --preview

Local development

wrangler dev --local

Publish

wrangler publish

Demo

https://one-time-secret.com