Skip to content
maskera

Protect personal data before text is sent to AI

Install Maskera Gateway in your own Docker or Kubernetes environment. It replaces detected Swedish personal data before text leaves your network.

The original text and the key used to restore it stay with you. Automated masking can miss data in running text. Try the same masking directly in your browser at maskera.dev.

Your text

Anna Lindqvist (900101-0000) på Verkstadsgatan 12 i Malmö undrar om sin faktura.

What the AI model sees

[NAMN_1] ([PERSONNUMMER_1]) på [ADRESS_1] i [PLATS_1] undrar om sin faktura.

Change the base URL in your AI client

The interface is translated, but example text and API payloads remain in Swedish because Maskera is built to mask Swedish text; it does not translate it.

const client = new OpenAI({
  apiKey: process.env.MASKERA_GATEWAY_KEY,
  baseURL: "https://maskera-gateway.ert-natverk.internal/v1/openai",
})

Your application can also mask text through Gateway's /v1/mask endpoint and forward it itself. The response contains the masked text and a key for restoring the placeholders. Gateway does not send the original text or that key to Maskera.

curl https://maskera-gateway.ert-natverk.internal/v1/mask \
  -H "Authorization: Bearer $MASKERA_GATEWAY_KEY" \
  -H "Content-Type: application/json" \
  -d '{"text": "Min granne Lars bor på Kungsholmen."}'

{"text": "Min granne [NAMN_1] bor på [PLATS_1]."}
Read about Gateway

Try the masking directly in your browser

Try the same open-source masking model directly in your browser at maskera.dev. The text and the key used to restore it are not sent away for masking.

Your message will be emailed to hej@maskera.dev.