Encrypt / Decrypt Tool

Encrypt sensitive text using a password and salt, or decrypt existing ciphertext. Uses AES-GCM with a key derived via PBKDF2 in your browser.

What is This Encrypt / Decrypt Tool?

This utility helps you quickly encrypt or decrypt short pieces of text using a password-based key. The encryption happens entirely in your browser using the Web Crypto API, so your data is not sent to any server.

How It Works

  • Your password and salt are used with PBKDF2 (a standard key-derivation function) to create a strong AES key.
  • The tool uses AES-GCM, a modern authenticated encryption algorithm that provides both confidentiality and integrity.
  • When encrypting, a random IV (initialization vector) is generated and stored together with the ciphertext.
  • The final encrypted output is encoded as Base64 so it can be easily copied into JSON, configuration files, or environment variables.

What Are Password, Salt, and IV?

  • Password / Key: The secret you remember. Anyone who has this can decrypt the data.
  • Salt: A non-secret random or unique string that makes derived keys more resistant to rainbow-table attacks.
  • IV (Initialization Vector): A random value used once per encryption operation. It is stored alongside the ciphertext.

Security Notes

  • Choose a strong password and a sufficiently random salt (for example, 16+ random characters).
  • This tool is designed for educational and light utility purposes. For production use, always follow your security team's guidelines.