How this tool computes its result
Uses the Web Crypto API to perform AES-GCM encryption and decryption with passphrase-based key derivation. To encrypt, the tool generates a random 16-byte salt and 12-byte initialization vector (IV), derives a 256-bit AES key from the passphrase using PBKDF2 with SHA-256 hashing and 100,000 iterations, then encrypts the plaintext with AES-GCM. The output is a JSON object bundling version, base64-encoded salt, base64-encoded IV, and base64-encoded ciphertext. To decrypt, it reverses the process: parses the JSON payload, reconstructs the salt and IV from their base64 strings, re-derives the key using the same passphrase and salt, and decrypts the ciphertext using the IV. All operations run entirely in the browser with no server involvement.
