
Example: encrypting meet at 7pm with password correct horse gives a different Base64 string every time, but each one decrypts back to the same text.
The Base64 string contains, in order: 1 byte version (1), 1 byte mode (1 = GCM, 2 = CBC), 1 byte key length in bytes (16 or 32), 1 byte KDF (1 = PBKDF2-HMAC-SHA256), 4 bytes iteration count (big-endian), 16 bytes random salt, the IV (12 bytes for GCM, 16 for CBC) and the ciphertext (with the 16-byte GCM tag at the end). The key is PBKDF2-SHA256(password, salt, iterations). Because all parameters are stored, only the password is needed to decrypt.
What if I forget the password? The text cannot be recovered. There is no back door.
GCM or CBC? GCM also detects tampering and wrong passwords. CBC is offered for compatibility only.
Is anything sent to a server? No, encryption runs in your browser with Web Crypto.