title: bash script to run various openssl ciphers to decrypt file
body: <p>I'm very new to Linux and scripting, but I would like to create a script that runs <code>openssl</code> to test various ciphers. I know the password, and I know it was encrypted with <code>openssl</code>, but I don't know which cipher was used. I have been attempting this by changing the cipher manually each time, but I thought understanding how a script could do this might be worth figuring out. 
  The command I have been using is</p>
  
  <pre><code>openssl bf -d -in file.enc -out file.dcrypt 
  </code></pre>
  
  <p>this prompts me for the password. 
  I have a text file saved with all the ciphers I wish to try with each on a single line. </p>
  
  <p>I want to loop the operation and go through each of the ciphers to see which one works. It would be nice to show the variable as part of the dcrypt file name as well.
  is pseudo code</p>
  
  <pre><code>start loop n(first line in txt file to eof)
  openssl 'n' -d -in file.enc -out file.dcrypt.n (a way to add the password?)
  exit eof
  </code></pre>
  
  <p>Any help would be appreciated.</p>