title: Encrypt every item inside a folder in Bash
body: <p>I have a code which is supposed to encrypt every file within a folder but when I put it (the encryption code) within the infinite loop it does not work.</p>
  
  <pre><code>touch Out_file.txt
  ls &gt; Out_file.txt
  i = 0
  while:
  i = i + 1
  line=$(head -n $i Out_file.txt)
  openssl cbc -aes-256-cbc -pass pass:Hello123  -p -in $line -out $line.enc
  done
  </code></pre>
  
  <blockquote>
    <p>It might be able to encrypt all your files within the folder you are
    running the program in so please proceed with caution</p>
  </blockquote>