So I am writing a bash script which will decrypt a file so I what the syntax of the the command to be decrypt [file.jpg] So far this is my script :
openssl enc -d -aes-256-cbc -in file.jpg > file
echo "Please make sure you add the correct extension to
the file."
Spent a lot time trying to achieve my goal but it doest work so I would like some help. Like suppose the file name is movie.mov I should be able to decrypt it using decrypt movie.mov or any other file.
EDIT: Thanks for all your answer but I found the answer which I approved to be simple and sorry I can't approve multiple answer all the answer give some new information!