Skip to content
tools.rajujha.dev
Search tools

Encrypt-Decrypt

Encrypt and decrypt text with a secret key

Use /secret for a strong key.

Enter text and a secret, choose Encrypt or Decrypt, then run. Stays in your browser. Ctrl+Enter to run.

How to use this tool as an API

GET and POST. UI stays in the browser. Default v=2; v=1 is legacy. Returns data.compact and data.json. PBKDF2 iterations default 310,000 (max 310,000). GET query strings can be logged or cached — prefer POST for secrets.

GET, POST /api/encryption

Params: str, key, mode, v?, iter?

Example

GET /api/encryption?str=hello&key=your-secret&mode=encrypt POST /api/encryption Content-Type: application/json {"str":"hello","key":"your-secret","mode":"encrypt"}