title: Understanding command line OpenSSL DGST Sha256 command
body: <p>I have the command <code>openssl dgst -sha256 -binary _your_file_path_ | openssl enc -base64</code> I use in terminal to get an output for a jar file that matches what AWS Lambda uses to hash.</p>
  <p>I want to program that in Java, but I am having trouble understanding exactly what is going on in that line, so that I can go through each step in my code. Obviously, there is mode than just hashing in SHA256, because when I do that the output does not match.</p>
  <p>Could someone help explain the steps that line is completing in a simple way for me?</p>