DEV Community

Claus Guttesen
Claus Guttesen

Posted on

Encrypt messages on device and share using a link

I wrote a webapplication with great help from Claude AI, where you can create a message, have it encrypted, upload the encrypted message to a server, share a link and decrypt it using a key downloaded to your device.

Decrypting messages can be done without registering an account. Encrypting messages requires a registration. A profile is registered at Bitwarden, and a passkey is registered on your device. I can't read the profile at Bitwarden, apart from a random uuid.

Write a message (optional):
Write message

Encrypt in browser, store encrypted message on server, and download key (optional).
Encrypt and download key

Decrypt message with key.
Descrypt message

The code is available at https://github.com/kometen/rocket-ssr. An example can be opened at https://obscura.bsky.dk/message/gKSxqMBjzj1Su0QAViN6zg. Use the key sSjMGidFJzDuG6h2LNsxBHGr/dwgIoP+CWAOGgxRXZ8= to decrypt it.

Enjoy.

It is build using the Rust based Rocket framework, Bitwardens passwordless service. And the example is based on https://github.com/davidzr/passwordless-rust.

Image of Quadratic

AI spreadsheet assistant for easy data analysis

Chat with your data and get insights in seconds with the all-in-one spreadsheet that connects to your data, supports code natively, and has built-in AI.

Try Quadratic free

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Explore a trove of insights in this engaging article, celebrated within our welcoming DEV Community. Developers from every background are invited to join and enhance our shared wisdom.

A genuine "thank you" can truly uplift someone’s day. Feel free to express your gratitude in the comments below!

On DEV, our collective exchange of knowledge lightens the road ahead and strengthens our community bonds. Found something valuable here? A small thank you to the author can make a big difference.

Okay