Yes—the salt and IV are supposed to be visible when you use AES-256-GCM to encrypt text, while the password must remain secret.

In the JSON output from AES Encryption Online, the salt and IV are visible base64url fields. Their presence is expected and does not let someone recover the plaintext without the password.

are the salt and iv supposed to be visible when i use aes 256 gcm encrypt text
Are the Salt and IV Visible in AES-256-GCM Text?

Why this package shows the salt and IV

“Visible” does not mean “decryptable by anyone.” The salt and IV are parameters needed for key derivation and authenticated encryption. The password is the secret input; the salt and IV are not substitutes for it.

  • Salt: A fresh 16-byte random value is used for each encryption. PBKDF2 incorporates it into key derivation, so the same password does not automatically produce the same derived key in every package.
  • IV: A fresh 12-byte random value is used for each encryption. AES-GCM requires the IV to be unique for a given key; uniqueness does not require the IV to be secret, and this tool stores it openly in the JSON package.
  • Password: It is converted to UTF-8 and processed with PBKDF2-SHA-256 and 210,000 iterations to derive the AES key. The password is never written into the JSON package.
  • Authentication tag: The 128-bit tag is included in the authenticated ciphertext. It can travel with the package because its role is to detect modification, not to conceal the encrypted content.
Value Stored form Needs to stay secret?
Salt 16-byte random value in base64url No
IV 12-byte random value in base64url No
Ciphertext Authenticated base64url value It may be transferred; the password remains necessary to recover the plaintext
Authentication tag Included in the authenticated ciphertext No
Password Absent from the output Yes
Derived AES-256 key Absent from the output Yes
PBKDF2 settings SHA-256 with 210,000 iterations No

The package uses unpadded base64url for the salt, IV, and authenticated ciphertext. Base64url is a reversible text representation defined by RFC 4648, not an additional encryption layer. The encryption, derivation, and authentication operations use the browser’s Web Cryptography specification.

Encrypt and decrypt without changing the visible fields

Use the salt and IV exactly as the tool generates them. The supported workflow keeps the JSON package intact and protects the password separately.

  1. Choose Encrypt and enter the plaintext. Type or paste the text that should be encrypted into the encryption input.
  2. Enter a unique password of at least 12 UTF-8 bytes. Longer passphrases are allowed. For meaningful protection, use a high-entropy password stored in a trusted password manager. The minimum input length does not make a short, reused, leaked, or predictable password strong.
  3. Run AES-256-GCM encryption. The tool requests the fresh salt and IV, derives a non-exportable 256-bit AES key, and returns the complete versioned JSON package.
  4. Copy the whole JSON package unchanged and protect the password separately. Use the copy control, retain every field, and communicate the password through a separate secure channel. The package is intended for controlled transfer or storage.
  5. Choose Decrypt, paste the unchanged package, and enter the same password. Run decryption. If authentication succeeds, the plaintext is returned. If the password is wrong or protected bytes were changed, the tool reports authentication failure without returning partial plaintext.

Why identical text can produce a different package

Encrypting the same plaintext with the same password more than once should produce different JSON packages. Each run creates a new salt and IV, so both the PBKDF2 input and the GCM initialization value differ. This non-determinism is expected and avoids exposing equality through identical deterministic ciphertext.

Use the exact package you want to decrypt with its matching password. Do not replace its salt or IV with values from another run, and do not try to make two separately generated packages byte-for-byte identical.

Package validation and authentication failures

The tool strictly validates the package before it can attempt authenticated decryption. Structural validation and later authentication failures include:

  • A wrong password: A wrong password does not itself cause package validation to fail; Web Crypto authentication fails when the password is mistyped, incomplete, or different from the one used for encryption.
  • Modified protected bytes: Once the package passes structural validation, changed ciphertext or authentication-tag bytes cause Web Crypto authentication to fail.
  • A missing or relabeled field: Removing a field or changing its declared algorithm, key-derivation label, or other required metadata breaks the package structure.
  • Incorrect salt or IV length: The decoder requires the salt to be exactly 16 bytes and the IV to be exactly 12 bytes.
  • Wrong text encoding: Malformed base64url, padded conventional Base64 where unpadded base64url is expected, or improperly altered field text can fail validation.

If the copied package has been edited or truncated, restore the original complete JSON rather than trying to reconstruct individual fields. An authentication failure produces no partial plaintext.

Keep the JSON layout intact for later decryption

The surrounding JSON format is specific to AES Encryption Online, even though its cryptographic ingredients are standardized. Another program can interoperate only if it reproduces the same UTF-8 handling, PBKDF2 parameters, AES-GCM tag placement, unpadded base64url encoding, and JSON fields. Version 1 of the package declares AES-256-GCM, PBKDF2-SHA-256, and the iteration count. Keep the whole package unchanged when moving it between encryption and decryption; removing the visible salt or IV does not make the package more secure and prevents successful decryption.

Browser-side protection has a defined boundary

Both operations run through the browser Web Crypto API. The plaintext, password, derived key, and decrypted result stay in the current page and are not submitted to Lizely. That protects the cryptographic processing, but it does not make every surrounding action safe.

  • Transfers remain separate: A copied package and a password sent through another channel leave the page, so the destination and communication method determine their exposure.
  • The device still matters: Browser extensions, compromised devices, clipboard managers, screen capture, and shared computers remain outside the cryptographic boundary.
  • There is no password recovery service: Passwords are not stored, escrowed, backed up, or managed by a server.
  • The intended use is limited: The tool suits small text snippets, demonstrations, controlled exchanges, and compatibility experiments. It is not a managed vault, enterprise key-management service, encrypted backup system, or substitute for a reviewed application-level design.

On a device you do not trust, clear sensitive content and close the tab. PBKDF2 raises the cost of password guessing, but it cannot repair a weak password or guarantee that the storage and transfer workflow is secure.

Related reading: Binary to Text Converter: How to Choose the Right Approach.

Related reading: CRC32 Calculator on Mac: Exact Text and Hex Checks.