encrypt:
cat tshirt.png | openssl enc -aes-256-cbc -a -salt -p > test.enc
decrypt:
cat test.enc | openssl aes-256-cbc -d -a -out tshirt2.png
Using https://transfer.sh
encrypt:
cat tshirt.png | openssl enc -aes-256-cbc -a -salt -p | curl -X PUT --upload-file "-" https://transfer.sh/tshirt.png.enc
decrypt:
Download the file manually via transfer.sh link then run cat test.enc | openssl aes-256-cbc -d -a -out tshirt2.png