Skip to content

Latest commit

 

History

History
57 lines (37 loc) · 1.19 KB

File metadata and controls

57 lines (37 loc) · 1.19 KB

Getting started

formseal-embed encrypts form submissions in the browser before they leave the user's device.

What you need

  • A POST endpoint — where encrypted submissions are sent
  • An X25519 key pair — public/private keys in base64url format

Quick setup

1. Install

pip install formseal-embed

2. Scaffold

fse init

Creates a formseal-embed/ directory in your project.

3. Generate keys

fse keygen

This outputs your public/private key pair. Store the private key somewhere safe — you'll need it to decrypt submissions.

4. Configure

fse set endpoint
fse set key
fse set origin

You'll be prompted for your endpoint URL, public key, and form origin. Use fse status to check your config. Add -fields to see per-field details.

5. Add to your page

<script src="/formseal-embed/globals.js"></script>

Then add your form markup. See Browser runtime → HTML.

Read more