the use of Sha256 has now been sorted out and is producing the correct hash