The file records the salt but not how the password was turned into a key, so the decrypting side has to use the same options as the encrypting side. Three mismatches cause almost every bad decrypt error:
- The default changed in OpenSSL 1.1.0. Before it,
openssl enc derived keys with MD5; since then it uses SHA-256. A file made on an old server needs -md md5 on a new one.
- -pbkdf2 on one side only. It must be used for both encryption and decryption, with the same
-iter count (10,000 when not given).
- A different cipher. A file encrypted with
-aes-128-cbc will not open with -aes-256-cbc.
The tool above tries every cipher and key derivation for you and shows the matching command once it succeeds. It only tries the default PBKDF2 count of 10,000, so if the file was made with a custom -iter (scripts often use 100,000 or more), open Settings and type that number.