Encrypt plaintext with a password using Argon2id + XChaCha20-Poly1305.
The output is self-describing: all Argon2 parameters and the salt are
embedded in the ciphertext header, so decryption only needs the password.
Costs are bounded (see cost-limits) because decryption reads them from
that untrusted header; encryption applies the same bounds so it never
produces a payload decryption would refuse.
Encrypt plaintext with a password using Argon2id + XChaCha20-Poly1305.
The output is self-describing: all Argon2 parameters and the salt are embedded in the ciphertext header, so decryption only needs the password. Costs are bounded (see
cost-limits) because decryption reads them from that untrusted header; encryption applies the same bounds so it never produces a payload decryption would refuse.