Question on "Bad magic number" with openssl in Travis encryption

Hi, I am following this doc https://docs.travis-ci.com/user/encrypting-files/ to encrypt a secret file (super_secret.txt). To be more specific, I am using the openssl method at the end of the doc.

I ran the below on my Mac command line:

$ travis encrypt super_secret_password=ahduQu9ushou0Roh --add
$ openssl aes-256-cbc -k "ahduQu9ushou0Roh" -in super_secret.txt -out super_secret.txt.enc -d

The cli kept replying with a message bad magic number. I don’t understand the error message and couldn’t find resource so I would appreciate any help.

I have made sure that my travis cli is pointing to the correct enterprise domain. I have openssl of version LibreSSL 2.6.5 and travis version 1.9.1. I am running on macOS

I tried one solution from stack-overflow of adding -md -md5 but that gave the same error.

Try, openssl aes-256-cbc -K $encrypted_<...>_key -iv $encrypted_<...>_iv -in deploy_rsa.enc -out /tmp/deploy_rsa -d

See if that curbs that error message.