title: Using OpenSSL hash to do file compare
body: <p>Not sure why this is failing..</p>
  
  <pre><code>./testme.sh
  Before Loop
  SSL1: /root/a.txt SHA256(/root/a.txt)= 92b165232fbd011da355eca0b033db22b934ba9af0145a437a832d27310b89f9
  SSL2: /root/b.txt SHA256(/root/b.txt)= f0f9c277cf17429957daf6594714cc5470ac5c474ba5ac50319185477a174799
  different
  
  
  cp a.txt b.txt
  ./testme.sh
  Before Loop
  SSL1: /root/a.txt SHA256(/root/a.txt)= 92b165232fbd011da355eca0b033db22b934ba9af0145a437a832d27310b89f9
  SSL2: /root/b.txt SHA256(/root/b.txt)= 92b165232fbd011da355eca0b033db22b934ba9af0145a437a832d27310b89f9
  different
  </code></pre>
  
  <p>Checksums, and the same, but reported different :|</p>
  
  <pre><code>#!/bin/bash
  #
  # OPENSSL=/usr/bin/openssl
  OPENSSL=/usr/local/openssl/bin/openssl
  HOME=/root
  ENCRYPT=sha256
  
  SSL1=$($OPENSSL $ENCRYPT $HOME/a.txt)
  SSL2=$($OPENSSL $ENCRYPT $HOME/b.txt)
  
  ## DEBUG
  echo "SSL1: $HOME/a.txt $SSL1"
  echo "SSL2: $HOME/b.txt $SSL2"
  
  
  if [ "$SSL1" = "$SSL2" ]
   then
    echo "same"
   else
    echo "different"
  fi
  </code></pre>