Text Encrypt and Decrypt API
Encrypt text with a password (AES-256-GCM, key from PBKDF2-HMAC-SHA256 with 600,000 iterations, random salt and IV) as one Base64 string, or decrypt such a string. Compatible with the PithLab Text Encryption tool.
POST /api/v1/tools/text-encryptionMCP text_encryptionSecurity & PrivacyRandom outputEncrypt and decrypt text with a password using AES-256-GCM and PBKDF2 with 600,000 iterations. Output is one Base64 string. Runs entirely in your browser.
Input
Send these as a JSON object. Unknown fields are rejected.
- input
- Plain text to encrypt, or the Base64 output of a previous encryption to decrypt. (string, up to 100000 characters, required)
- password
- The password. Use a long, unique one; it is never stored. (string, up to 1000 characters, required)
- mode
- encrypt or decrypt. (string, one of encrypt, decrypt, required)
curl https://pithlab.com/api/v1/tools/text-encryption \n -H "Authorization: Bearer $PITHLAB_KEY" \n -H "Content-Type: application/json" \n -d '{"input":"Meet at noon.","password":"correct horse battery staple","mode":"encrypt"}'