Secrets Application
·1 min
I created a secrets application to send secrets over the net and made it open to the public. A secret is allowed to be 32KB max, as it’s only intended for short-lived small secrets to be sent. The application uses PBKDF2 for key derivation and AES-GCM for encryption. Secrets are stored encrypted in a Cloudflare KV table.
As soon as the secret is retrieved, it is destroyed on the CloudFlare KV store. Otherwise, it expires after 24 hours. Only users with the given URL and password will be able to decrypt the secret. I used making this application as a reason to play around with my webcrypto wrapper library.