Skip to content

AES Text Encryption

Encrypt a message with a passphrase using AES-256-GCM and decrypt it again. The key is derived from the passphrase with PBKDF2-HMAC-SHA256 and 600,000 iterations and a random salt, and the result is a single Base64 string that also protects the message against tampering.

Frequently asked questions

How is the text encrypted?

A 256-bit key is derived from your passphrase with PBKDF2-HMAC-SHA256, 600,000 iterations and a random 16-byte salt, and the text is encrypted with AES-256 in GCM mode with a random 12-byte nonce. GCM adds a 16-byte authentication tag, so any change to the ciphertext is detected.

What does the output contain?

The salt, the nonce, the ciphertext and the tag, joined in that order and encoded as Base64. Everything needed to decrypt is in the string except the passphrase, so you can store or send it as one piece of text.

How do I decrypt?

Choose decrypt, paste the Base64 string and enter the same passphrase. If the passphrase is wrong or the string was changed, decryption fails instead of returning garbage, because the authentication tag no longer matches.

How strong should the passphrase be?

The key is only as strong as the passphrase. PBKDF2 slows down guessing, but a short or common passphrase can still be found. Use a long passphrase of several random words or a password manager entry.

Can other programs decrypt the output?

Yes, with the same parameters: PBKDF2-HMAC-SHA256 with 600,000 iterations for a 32-byte key, then AES-256-GCM with the 12-byte nonce and 16-byte tag. The Web Crypto API in browsers, Node.js and OpenSSL-based libraries all support these primitives.

Is my text or passphrase stored?

No. Both are used for this request only and neither is included in the response other than the result itself.

About OneClick Pro

OneClick Pro is a free collection of more than 150 web tools for everyday work: converting images and units, formatting and validating code, checking domains and SEO, and working with text, dates and numbers. Every tool runs without registration or subscription, and what you enter is only used to calculate your result and is never stored. Use it as a quick toolbox for one-off tasks, or bookmark the tools you rely on every day.