title: How to decrypt file in Java encrypted with openssl command using AES?
body: <p>I need to decrypt in JAVA a file encrypted in UNIX with the following command:</p>
  
  <pre><code>openssl aes-256-cbc -a -salt -in password.txt -out password.txt.enc
  mypass
  mypass
  </code></pre>
  
  <p>I have to decrypt in java as I do here I do in UNIX</p>
  
  <pre><code>openssl aes-256-cbc -d -a -in password.txt.enc -out password.txt.new
  mypass
  </code></pre>
  
  <p>Someone can give me a java code to do this?</p>