Why the payload carries a salt and an IV
Using a password directly as an AES key means identical plaintext always produces identical ciphertext, which lets an observer see which messages match and enables precomputed tables. Every encryption here generates a 16-byte random salt and a 12-byte IV packed with the ciphertext, so encrypting the same text twice yields different results — that is correct behaviour, not instability. The password is turned into a key through PBKDF2-SHA256 with 200,000 iterations to make guessing expensive.