Runs locally
No uploads
No storage
Blog
Resource

Mask private key blocks before AI

Hide private key blocks (PEM/SSH keys) before you paste text into an AI chat.

What this helps with

  • Accidentally pasting PEM blocks into AI chats
  • Sharing CI logs or env dumps that contain private keys
  • Preventing irreversible credential leaks

Example

-----BEGIN PRIVATE KEY-----
<REDACTED>
-----END PRIVATE KEY-----

Checklist

  1. Redact the entire block between BEGIN and END
  2. Rotate the key if it was exposed anywhere outside your team
  3. Also check for tokens, API keys, and env secrets in nearby text
  4. Only share the minimum needed to debug

Use Aimasker