How the encryption works
AES-256-GCM is an authenticated cipher: it both hides the content and detects tampering. Because AES needs a fixed-length key, your passphrase is first run through PBKDF2-SHA-256 with a random salt to derive a 256-bit key. A random 96-bit IV (nonce) is generated for every encryption so the same text and passphrase never produce the same ciphertext twice.
The output is a small JSON bundle containing the salt, IV, ciphertext and the GCM authentication tag. Decryption re-derives the key from that salt and verifies the tag before returning any plaintext.